check-routeros-update: do not act if reboot is scheduled

This commit is contained in:
Christian Hesse 2020-01-16 16:11:50 +01:00
parent 08c90c95b7
commit 12da4de305

View file

@ -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; / system package update check-for-updates without-paging;
:local Update [ / system package update get ]; :local Update [ / system package update get ];