From a6f914de3f036e2264e9c2e315629fc69d439fd4 Mon Sep 17 00:00:00 2001 From: "@RubenKelevra" Date: Fri, 6 May 2016 13:30:06 +0200 Subject: [PATCH] Create a lockfile for 3rd-party scripts which can be checked easily to ensure... that no reboot will be initiated while autoupdater is running. --- .../files/usr/lib/autoupdater/upgrade.d/00lockfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/00lockfile 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