Compare commits

..

2 commits

Author SHA1 Message Date
b459821a8d
roundcube update +
composer_lock_reset
2023-09-06 09:25:17 +02:00
4415bc32f5
macbook clamav 2023-09-06 09:18:21 +02:00
5 changed files with 37 additions and 4 deletions

View file

@ -0,0 +1 @@
DatabaseMirror database.clamav.net

View file

@ -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'] = {}
# 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/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()]:

View file

@ -1 +1,5 @@
defaults = {}
defaults = {
'brew': {
'clamav',
},
}

View file

@ -43,7 +43,7 @@ actions['extract_roundcube'] = {
],
'triggers': [
'action:chown_roundcube',
'action:composer_install',
'action:composer_lock_reset',
],
}
actions['chown_roundcube'] = {
@ -75,7 +75,16 @@ files['/opt/roundcube/plugins/password/config.inc.php'] = {
'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'] = {
'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,

View file

@ -194,7 +194,7 @@
},
'roundcube': {
'product_name': 'Sublimity Mail',
'version': '1.5.0',
'version': '1.6.2',
'installer': True,
},
'vm': {