Compare commits
2 commits
5cb5396817
...
b459821a8d
Author | SHA1 | Date | |
---|---|---|---|
b459821a8d | |||
4415bc32f5 |
5 changed files with 37 additions and 4 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',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -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,7 +194,7 @@
|
||||||
},
|
},
|
||||||
'roundcube': {
|
'roundcube': {
|
||||||
'product_name': 'Sublimity Mail',
|
'product_name': 'Sublimity Mail',
|
||||||
'version': '1.5.0',
|
'version': '1.6.2',
|
||||||
'installer': True,
|
'installer': True,
|
||||||
},
|
},
|
||||||
'vm': {
|
'vm': {
|
||||||
|
|
Loading…
Reference in a new issue