mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-04 21:19:36 +00:00
backup-email: also remove the directory
This commit is contained in:
parent
a7e681e7ce
commit
f54aa32aa9
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global RandomDelay;
|
:global RandomDelay;
|
||||||
|
:global RmDir;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendEMail2;
|
:global SendEMail2;
|
||||||
|
|
@ -136,6 +137,7 @@
|
||||||
$LogPrint warning $ScriptName ("Files are still available, sending e-mail failed.");
|
$LogPrint warning $ScriptName ("Files are still available, sending e-mail failed.");
|
||||||
:set PackagesUpdateBackupFailure true;
|
:set PackagesUpdateBackupFailure true;
|
||||||
}
|
}
|
||||||
|
$RmDir $DirName;
|
||||||
} do={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue