Fix shutdown units
This commit is contained in:
parent
d76c82bcbc
commit
0e661856bf
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,8 @@ in
|
|||
systemd.services."shutdown-after-backup" = {
|
||||
enable = true;
|
||||
serviceConfig = {
|
||||
ExecStart = shutdownScript;
|
||||
ExecStart = "${pkgs.bash}/bin/bash ${shutdownScript}";
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -47,5 +48,6 @@ in
|
|||
OnCalendar = "3..9:*";
|
||||
};
|
||||
wantedBy = [ "timers.target" ];
|
||||
partOf = [ "shutdown-after-backup.service" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue