mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
packages-update: use 'provides' to find backup scripts
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
||||||
#
|
#
|
||||||
|
# provides: backup-script
|
||||||
|
#
|
||||||
# upload backup to MikroTik cloud
|
# upload backup to MikroTik cloud
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/cloud-backup.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/cloud-backup.md
|
||||||
|
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
||||||
#
|
#
|
||||||
|
# provides: backup-script
|
||||||
|
#
|
||||||
# create and email backup and config file
|
# create and email backup and config file
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/email-backup.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/email-backup.md
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@ $ScriptLock $0;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Script in=[ / system script find where name~"^(cloud|email|upload)-backup\$" ] do={
|
:foreach Script in=[ / system script find where source~"\n# provides: backup-script\n" ] do={
|
||||||
:local ScriptName [ / system script get $Script name ];
|
:local ScriptName [ / system script get $Script name ];
|
||||||
:do {
|
:do {
|
||||||
$LogPrintExit2 info $0 ("Running backup script " . $ScriptName . " before update.") false;
|
$LogPrintExit2 info $0 ("Running backup script " . $ScriptName . " before update.") false;
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2021 Christian Hesse <mail@eworm.de>
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
||||||
#
|
#
|
||||||
|
# provides: backup-script
|
||||||
|
#
|
||||||
# create and upload backup and config file
|
# create and upload backup and config file
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/upload-backup.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/upload-backup.md
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user