Files
server/usr/lib/systemd/system-sleep/unattended-upgrades
2026-01-07 20:52:11 +01:00

11 lines
219 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$2" = "hibernate" ] || [ "$2" = "hybrid-sleep" ]; then
case "$1" in
pre)
/usr/share/unattended-upgrades/unattended-upgrade-shutdown --stop-only
;;
esac
fi