hosts: add systemd to reboot script dependencies

This commit is contained in:
Max Headroom 2023-07-25 01:51:20 +02:00
parent 43c6ec4e9a
commit 7a5261282c

View file

@ -24,6 +24,7 @@ in
rollbackScript = genAttrs systems (flip withSystem ({ pkgs, ... }:
let
scheduleReboot = pkgs.writeShellScript "schedule-reboot.sh" ''
export PATH="${pkgs.consul}/bin:${pkgs.systemd}/bin:${pkgs.coreutils}/bin"
currentTime=$(date +%s)
lastScheduledTime=$(consul kv get system/coordinated-reboot/last)
if [[ $? -ne 0 ]]; then