bundles/backup-client: metadata backup-pre-hooks now use /bin/sh by default
This commit is contained in:
parent
077eaa265c
commit
b20f369ea8
2 changed files with 1 additions and 2 deletions
|
@ -36,6 +36,6 @@ directories['/etc/backup-pre-hooks.d'] = {
|
||||||
|
|
||||||
for hname, hcontent in node.metadata['backup-client'].get('pre-hooks', {}).items():
|
for hname, hcontent in node.metadata['backup-client'].get('pre-hooks', {}).items():
|
||||||
files[f'/etc/backup-pre-hooks.d/{hname}'] = {
|
files[f'/etc/backup-pre-hooks.d/{hname}'] = {
|
||||||
'content': hcontent,
|
'content': '#!/bin/sh\n\n' + hcontent,
|
||||||
'mode': '0700',
|
'mode': '0700',
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,6 @@ nodes['htz.ex42-1048908'] = {
|
||||||
'backup-client': {
|
'backup-client': {
|
||||||
'pre-hooks': {
|
'pre-hooks': {
|
||||||
'kunsi-weechat': \
|
'kunsi-weechat': \
|
||||||
'#!/bin/sh\n' \
|
|
||||||
'echo \'core.weechat */layout store\' >> /home/kunsi/.weechat/weechat_fifo\n' \
|
'echo \'core.weechat */layout store\' >> /home/kunsi/.weechat/weechat_fifo\n' \
|
||||||
'echo \'core.weechat */save\' >> /home/kunsi/.weechat/weechat_fifo\n',
|
'echo \'core.weechat */save\' >> /home/kunsi/.weechat/weechat_fifo\n',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue