bundlewrap/bundles/molly-guard/files/10-check-unattended-upgrades
Franziska Kunsmann 3adfb9779a
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/molly-guard: introduce, add to systems
2021-02-26 17:58:20 +01:00

9 lines
228 B
Bash

#!/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