diff options
author | Christian Hesse <mail@eworm.de> | 2020-01-16 16:11:50 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-01-16 16:11:50 +0100 |
commit | 12da4de305421fe155e352cc9b1396f56338516e (patch) | |
tree | 20197fc716c9acfdd29159dae6d780d78f9e4c96 /check-routeros-update | |
parent | 08c90c95b71f74a15b09c23efef484d4b471ec04 (diff) |
check-routeros-update: do not act if reboot is scheduled
Diffstat (limited to 'check-routeros-update')
-rw-r--r-- | check-routeros-update | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update index 85f9168..1791b23 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -29,6 +29,10 @@ } } +:if ([ / system scheduler print count-only where name="reboot-for-update" ] > 0) do={ + :error "A reboot for update is already scheduled."; +} + / system package update check-for-updates without-paging; :local Update [ / system package update get ]; |