From f2e16a92d1675de790de591788e62ed3f586fc3a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 1 Nov 2020 22:20:02 +0100 Subject: README: optional scheduler to update scripts automatically --- INITIAL-COMMANDS.md | 4 ++++ README.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/INITIAL-COMMANDS.md b/INITIAL-COMMANDS.md index 597ddb6..6c167ef 100644 --- a/INITIAL-COMMANDS.md +++ b/INITIAL-COMMANDS.md @@ -26,6 +26,10 @@ procedure please follow [the long way in detail](README.md#the-long-way-in-detai $CertificateNameByCN "DST Root CA X3"; } +Optional to update the scripts automatically: + + / system scheduler add name="ScriptInstallUpdate" start-time=startup interval=1d on-event=":global ScriptInstallUpdate; \$ScriptInstallUpdate;"; + --- [◀ Go back to main README](README.md) [▲ Go back to top](#top) diff --git a/README.md b/README.md index 2c12b45..9aa0bb8 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,11 @@ And finally load configuration and functions and add the scheduler. [admin@MikroTik] > / system script { run global-config; run global-config-overlay; run global-functions; } [admin@MikroTik] > / system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-config-overlay; run global-functions; }" +The last step is optional: Add this scheduler **only** if you want the scripts +to be updated automatically! + + [admin@MikroTik] > / system scheduler add name="ScriptInstallUpdate" start-time=startup interval=1d on-event=":global ScriptInstallUpdate; \$ScriptInstallUpdate;" + Updating scripts ---------------- -- cgit v1.2.3-54-g00ecf