bundles/backup-client: backup-pre-hooks should have numeric sorting
This commit is contained in:
parent
7aeb46382d
commit
3d1468b214
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ 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/50-{hname}'] = {
|
||||||
'content': '#!/bin/sh\n\n' + hcontent,
|
'content': '#!/bin/sh\n\n' + hcontent,
|
||||||
'mode': '0700',
|
'mode': '0700',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue