bundles/backup-client: backup-pre-hooks should have numeric sorting

This commit is contained in:
Franzi 2021-02-13 08:37:49 +01:00
parent 7aeb46382d
commit 3d1468b214
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -35,7 +35,7 @@ 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}'] = {
files[f'/etc/backup-pre-hooks.d/50-{hname}'] = {
'content': '#!/bin/sh\n\n' + hcontent,
'mode': '0700',
}