bundles/apt: fix if in upgrade-and-reboot

This commit is contained in:
Franzi 2021-04-02 13:40:55 +02:00
parent 6712d98040
commit 4a3be10add
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -74,7 +74,7 @@ then
date | mail -s "SYSREBOOTNOW ${node.name}" ${data['mail']} date | mail -s "SYSREBOOTNOW ${node.name}" ${data['mail']}
% endif % endif
systemctl reboot systemctl reboot
% if restart_triggers % if restart_triggers:
else else
% for affected, restarts in sorted(restart_triggers.items()): % for affected, restarts in sorted(restart_triggers.items()):
up_since=$(systemctl show "${affected}" | sed -n 's/^ActiveEnterTimestamp=//p' || echo 0) up_since=$(systemctl show "${affected}" | sed -n 's/^ActiveEnterTimestamp=//p' || echo 0)