bundles/backup-client: metadata backup-pre-hooks now use /bin/sh by default

This commit is contained in:
Franzi 2021-02-13 08:26:46 +01:00
parent 077eaa265c
commit b20f369ea8
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 1 additions and 2 deletions

View file

@ -36,6 +36,6 @@ directories['/etc/backup-pre-hooks.d'] = {
for hname, hcontent in node.metadata['backup-client'].get('pre-hooks', {}).items():
files[f'/etc/backup-pre-hooks.d/{hname}'] = {
'content': hcontent,
'content': '#!/bin/sh\n\n' + hcontent,
'mode': '0700',
}

View file

@ -74,7 +74,6 @@ nodes['htz.ex42-1048908'] = {
'backup-client': {
'pre-hooks': {
'kunsi-weechat': \
'#!/bin/sh\n' \
'echo \'core.weechat */layout store\' >> /home/kunsi/.weechat/weechat_fifo\n' \
'echo \'core.weechat */save\' >> /home/kunsi/.weechat/weechat_fifo\n',
},