gluon-packages/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/00lockfile

9 lines
263 B
Plaintext

# 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