diff --git a/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/00lockfile b/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/00lockfile new file mode 100644 index 0000000..7738ec4 --- /dev/null +++ b/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/00lockfile @@ -0,0 +1,8 @@ +# Create a lockfile for 3rd-party scripts which can be checked easily to ensure that +# no reboot will be initiated while autoupdater is running + +lockfile='/tmp/autoupdate.lock' + +touch $lockfile || logger "gluon-autoupdater: lockfile could not be written" + +exit 0