Minor doc update

This commit is contained in:
Pothi Kalimuthu 2022-02-12 09:27:34 +05:30
parent 422d5f5c0e
commit f78b1a159b

View file

@ -2,12 +2,15 @@
# requirement $adminEmailAddress or configure it below
# :local adminEmailAddress "admin@example.com"
# if you run this script at "startup",
# the following indicates the time for the internet to go "up"
:delay 60s
/system package update
# check-for-updates once
# :delay 10s
:local verionStatus
check-for-updates once
:local verionStatus
:set $versionStatus [get status]
# alternative way to get the above info
# :set $versionStatus ([print as-value]->"status")
@ -15,9 +18,9 @@
:put $versionStatus
:put $adminEmailAddress
:if ( $versionStatus = "New version is available" ) do={
# alternative method
# :if ( [get installed-version] != [get latest-version] ) do={
:if ( $versionStatus = "New version is available" ) do={
/tool e-mail send to="$adminEmailAddress" \
subject="[Mikrotik] Software Up date Available" \
body="A new update is available for your MikroTik device"