mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
restic: make sure pre and post hooks have interpreters
This commit is contained in:
parent
aa559a682b
commit
28907d1f77
1 changed files with 3 additions and 3 deletions
|
|
@ -491,7 +491,7 @@ in
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
${lib.optionalString (backup.backupPrepareCommand != null) ''
|
${lib.optionalString (backup.backupPrepareCommand != null) ''
|
||||||
${pkgs.writeScript "backupPrepareCommand" backup.backupPrepareCommand}
|
${pkgs.writeShellScript "backupPrepareCommand" backup.backupPrepareCommand}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${lib.optionalString (backup.initialize) ''
|
${lib.optionalString (backup.initialize) ''
|
||||||
|
|
@ -508,7 +508,7 @@ in
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${lib.optionalString (backup.dynamicFilesFrom != null) ''
|
${lib.optionalString (backup.dynamicFilesFrom != null) ''
|
||||||
${pkgs.writeScript "dynamicFilesFromScript" backup.dynamicFilesFrom} >> ${filesFromTmpFile}
|
${pkgs.writeShellScript "dynamicFilesFromScript" backup.dynamicFilesFrom} >> ${filesFromTmpFile}
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
@ -522,7 +522,7 @@ in
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
${lib.optionalString (backup.backupCleanupCommand != null) ''
|
${lib.optionalString (backup.backupCleanupCommand != null) ''
|
||||||
${pkgs.writeScript "backupCleanupCommand" backup.backupCleanupCommand}
|
${pkgs.writeShellScript "backupCleanupCommand" backup.backupCleanupCommand}
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue