hosts: add systemd to reboot script dependencies
This commit is contained in:
parent
43c6ec4e9a
commit
7a5261282c
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ in
|
||||||
rollbackScript = genAttrs systems (flip withSystem ({ pkgs, ... }:
|
rollbackScript = genAttrs systems (flip withSystem ({ pkgs, ... }:
|
||||||
let
|
let
|
||||||
scheduleReboot = pkgs.writeShellScript "schedule-reboot.sh" ''
|
scheduleReboot = pkgs.writeShellScript "schedule-reboot.sh" ''
|
||||||
|
export PATH="${pkgs.consul}/bin:${pkgs.systemd}/bin:${pkgs.coreutils}/bin"
|
||||||
currentTime=$(date +%s)
|
currentTime=$(date +%s)
|
||||||
lastScheduledTime=$(consul kv get system/coordinated-reboot/last)
|
lastScheduledTime=$(consul kv get system/coordinated-reboot/last)
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue