mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-28 00:40:10 +02:00
Remove unused code; remove sens info; simplified script
This commit is contained in:
parent
04cb8d03a6
commit
2ede2d4b5e
2 changed files with 6 additions and 17 deletions
|
@ -1,14 +1,5 @@
|
|||
/system script
|
||||
add dont-require-permissions=yes name="Alert on New Version" owner=admin source=":delay 60s\
|
||||
\n:global emailAddress \"kpothi@gmail.com\";\
|
||||
\n\
|
||||
\n/system package update;\
|
||||
\ncheck-for-updates once;\
|
||||
\n:delay 10s;\
|
||||
\n\
|
||||
\n:if ( [get status] = \"New version is available\") do=\
|
||||
\n /tool e-mail send to=\"\$emailAddress\" subject=\"[Mikrotik] Software Up \\\
|
||||
\n date Available\" body=\"A new update is available for your MikroTik device\"\
|
||||
\n}\
|
||||
\n"
|
||||
/system package update check-for-updates once; :delay 10s;
|
||||
|
||||
:if ( [get status] = "New version is available") do={
|
||||
/tool e-mail send to="$emailAddress" subject="[Mikrotik] A new update is available" body="See subject!"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue