bundlewrap/bundles/molly-guard/files/10-check-unattended-upgrades

10 lines
228 B
Text
Raw Normal View History

#!/bin/bash
# Checks wether upgrade-and-reboot is currently running.
if [[ -f "/var/lib/bundlewrap/soft-${node.name}/UNATTENDED" ]]
then
echo "Sorry, can't $MOLLYGUARD_CMD now, upgrade-and-reboot is running"
exit 1
fi