Skip to content
Snippets Groups Projects
Commit a39f527d authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-autoupdater: add locking to ensure no two instances of the autoupdater run in parallel

parent bb2adefd
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
lock /var/gluon/autoupdater.lock
autoupdater "$@"
lock -u /var/gluon/autoupdater.lock
......@@ -49,5 +49,5 @@ autoupdater_util.randomseed()
-- Perform updates at a random time between 04:00 and 05:00
local f = io.open('/lib/gluon/cron/autoupdater', 'w')
f:write(string.format('%i 4 * * * /usr/sbin/autoupdater\n', math.random(0, 59)))
f:write(string.format('%i 4 * * * /lib/gluon/autoupdater/autoupdate\n', math.random(0, 59)))
f:close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment