mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
backup-email: refuse when running from backup partition
This commit is contained in:
parent
db508ddcd1
commit
303c393900
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,14 @@
|
||||||
:set ExitOK true;
|
:set ExitOK true;
|
||||||
:error false;
|
:error false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:if ([ :len [ /system/scheduler/find where name="running-from-backup-partition" ] ] > 0) do={
|
||||||
|
$LogPrint warning $ScriptName ("Running from backup partition, refusing to act.");
|
||||||
|
:set PackagesUpdateBackupFailure true;
|
||||||
|
:set ExitOK true;
|
||||||
|
:error false;
|
||||||
|
}
|
||||||
|
|
||||||
$WaitFullyConnected;
|
$WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ $ScriptFromTerminal $ScriptName ] = false && $BackupRandomDelay > 0) do={
|
:if ([ $ScriptFromTerminal $ScriptName ] = false && $BackupRandomDelay > 0) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue