diff options
author | Christian Hesse <mail@eworm.de> | 2019-12-05 09:50:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-12-05 11:41:49 +0100 |
commit | 3db466f476ae9bdf51a27647ead8ff34800efd0d (patch) | |
tree | 84d7a5facf8cdb71cdbaa69f52021228b9f24725 /capsman-rolling-upgrade | |
parent | b8db93918fa0f15b4b5113c8d98364b0a86607cc (diff) |
capsman-rolling-upgrade: lock against multiple invocation
Diffstat (limited to 'capsman-rolling-upgrade')
-rw-r--r-- | capsman-rolling-upgrade | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/capsman-rolling-upgrade b/capsman-rolling-upgrade index 7723f93..7e172cc 100644 --- a/capsman-rolling-upgrade +++ b/capsman-rolling-upgrade @@ -5,6 +5,10 @@ # # upgrade CAPs one after another +:global ScriptLock; + +$ScriptLock "capsman-rolling-upgrade"; + :local InstalledVersion [ / system package update get installed-version ]; :local RemoteCapCount [ /caps-man remote-cap print count-only ]; |