Compare commits
8 commits
7a7fee21f7
...
bbe3d9c7f5
Author | SHA1 | Date | |
---|---|---|---|
bbe3d9c7f5 | |||
dd09843873 | |||
9b9b571c35 | |||
d61f5fc4be | |||
5373954567 | |||
a5ec5eca7a | |||
b459821a8d | |||
4415bc32f5 |
6 changed files with 40 additions and 7 deletions
1
bundles/macbook/files/freshclam.conf
Normal file
1
bundles/macbook/files/freshclam.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DatabaseMirror database.clamav.net
|
|
@ -1,3 +1,12 @@
|
||||||
|
# brew install
|
||||||
|
|
||||||
|
actions['brew_install'] = {
|
||||||
|
'command': '/opt/homebrew/bin/brew install ' + ' '.join(node.metadata.get('brew')),
|
||||||
|
'unless': f"""PKGS=$(/opt/homebrew/bin/brew leaves); for p in {' '.join(node.metadata.get('brew'))}; do grep -q "$p" <<< $PKGS || exit 9; done"""
|
||||||
|
}
|
||||||
|
|
||||||
|
# bw init
|
||||||
|
|
||||||
directories['/Users/mwiegand/.config/bundlewrap/lock'] = {}
|
directories['/Users/mwiegand/.config/bundlewrap/lock'] = {}
|
||||||
|
|
||||||
# home
|
# home
|
||||||
|
@ -21,6 +30,16 @@ files['/Users/mwiegand/.local/share/direnv/pyenv'] = {}
|
||||||
files['/Users/mwiegand/.local/share/direnv/venv'] = {}
|
files['/Users/mwiegand/.local/share/direnv/venv'] = {}
|
||||||
files['/Users/mwiegand/.local/share/direnv/bundlewrap'] = {}
|
files['/Users/mwiegand/.local/share/direnv/bundlewrap'] = {}
|
||||||
|
|
||||||
|
|
||||||
|
# clamav
|
||||||
|
|
||||||
|
files['/opt/homebrew/etc/clamav/freshclam.conf'] = {
|
||||||
|
'group': 'admin',
|
||||||
|
}
|
||||||
|
# run me baby one more time:
|
||||||
|
# freshclam && clamscan --infected --recursive --exclude-dir ~/Library/Mail ~
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
|
||||||
for element in [*files.values(), *directories.values()]:
|
for element in [*files.values(), *directories.values()]:
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
defaults = {}
|
defaults = {
|
||||||
|
'brew': {
|
||||||
|
'clamav',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ $config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['
|
||||||
// For example %n = mail.domain.tld, %t = domain.tld
|
// For example %n = mail.domain.tld, %t = domain.tld
|
||||||
// WARNING: After hostname change update of mail_host column in users table is
|
// WARNING: After hostname change update of mail_host column in users table is
|
||||||
// required to match old user data records with the new host.
|
// required to match old user data records with the new host.
|
||||||
$config['default_host'] = 'localhost';
|
$config['imap_host'] = 'localhost';
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// SMTP
|
// SMTP
|
||||||
|
@ -46,7 +46,7 @@ $config['default_host'] = 'localhost';
|
||||||
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
|
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
|
||||||
// %z - IMAP domain (IMAP hostname without the first part)
|
// %z - IMAP domain (IMAP hostname without the first part)
|
||||||
// For example %n = mail.domain.tld, %t = domain.tld
|
// For example %n = mail.domain.tld, %t = domain.tld
|
||||||
$config['smtp_server'] = 'tls://localhost';
|
$config['smtp_host'] = 'tls://localhost';
|
||||||
|
|
||||||
// SMTP username (if required) if you use %u as the username Roundcube
|
// SMTP username (if required) if you use %u as the username Roundcube
|
||||||
// will use the current username for login
|
// will use the current username for login
|
||||||
|
|
|
@ -43,7 +43,7 @@ actions['extract_roundcube'] = {
|
||||||
],
|
],
|
||||||
'triggers': [
|
'triggers': [
|
||||||
'action:chown_roundcube',
|
'action:chown_roundcube',
|
||||||
'action:composer_install',
|
'action:composer_lock_reset',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
actions['chown_roundcube'] = {
|
actions['chown_roundcube'] = {
|
||||||
|
@ -75,7 +75,16 @@ files['/opt/roundcube/plugins/password/config.inc.php'] = {
|
||||||
'action:chown_roundcube',
|
'action:chown_roundcube',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
actions['composer_lock_reset'] = {
|
||||||
|
'command': 'rm /opt/roundcube/composer.lock',
|
||||||
|
'triggered': True,
|
||||||
|
'needs': [
|
||||||
|
'action:chown_roundcube',
|
||||||
|
],
|
||||||
|
'triggers': [
|
||||||
|
'action:composer_install',
|
||||||
|
],
|
||||||
|
}
|
||||||
actions['composer_install'] = {
|
actions['composer_install'] = {
|
||||||
'command': "cp /opt/roundcube/composer.json-dist /opt/roundcube/composer.json && su www-data -s /bin/bash -c '/usr/bin/composer -d /opt/roundcube install'",
|
'command': "cp /opt/roundcube/composer.json-dist /opt/roundcube/composer.json && su www-data -s /bin/bash -c '/usr/bin/composer -d /opt/roundcube install'",
|
||||||
'triggered': True,
|
'triggered': True,
|
||||||
|
|
|
@ -194,8 +194,8 @@
|
||||||
},
|
},
|
||||||
'roundcube': {
|
'roundcube': {
|
||||||
'product_name': 'Sublimity Mail',
|
'product_name': 'Sublimity Mail',
|
||||||
'version': '1.5.0',
|
'version': '1.6.2',
|
||||||
'installer': True,
|
'installer': False,
|
||||||
},
|
},
|
||||||
'vm': {
|
'vm': {
|
||||||
'cores': 4,
|
'cores': 4,
|
||||||
|
|
Loading…
Reference in a new issue