mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-08-16 15:31:07 +02:00
Readme file and update channel parameter fixed.
This commit is contained in:
parent
207090873a
commit
a7734dfcf9
2 changed files with 9 additions and 7 deletions
11
README.md
11
README.md
|
@ -1,17 +1,18 @@
|
|||
# Mikrotik Firmware Auto Updater
|
||||
Script automatically updates router to the latest firmware.
|
||||
When script finds new uptate it sends email notification that upgrade process has started, system backup and config file are in attachment. After firmware and routerboard got updated, it sends second email which tells that upgrade process has been finished.
|
||||
The script automatically updates the router to the latest firmware.
|
||||
When script finds new update it sends an email notification that upgrade process has started, system backup and config file are in the attachment. After firmware and routerboard got updated, it sends the second email which tells that upgrade process finished.
|
||||
|
||||
## How to use
|
||||
##### 1. Create new script
|
||||
System -> Scripts [Add]
|
||||
**Imprtant! ** Script name has to be **firmware-updater**
|
||||
Put script source and **set your email address** to the variable *emailAddress*
|
||||
|
||||
**Imprtant!** Script name has to be `firmware-updater`
|
||||
Put script source and **set your email address** to the variable `emailAddress`
|
||||

|
||||
|
||||
##### 2. Configure mail server
|
||||
Tools -> Email
|
||||
Set your email server parameters. If you don't have one, i recommend to use [smtp2go.com](https://smtp2go.com "smtp2go.com") service, it allows to send thousand emails per month for free.
|
||||
Set your email server parameters. If you don't have one, i recommend to use [smtp2go.com](https://smtp2go.com "smtp2go.com") service, it allows sending a thousand emails per month for free.
|
||||

|
||||
|
||||
##### 3. Create scheduled task
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
## If true, passwords will be included in exported config
|
||||
:local sensetiveDataInConfig false;
|
||||
|
||||
## Update channel. Possible values: current, bugfix
|
||||
## Update channel. Possible values: stable, long-term
|
||||
:local updateChannel "stable";
|
||||
|
||||
## Install only patch versions of firmware updates.
|
||||
## Means that new update will be installed only if major and minor version numbers are same as currently installed firmware.
|
||||
## Means that new update will be installed only if major and minor version numbers are the same as currently installed firmware.
|
||||
## Example: v6.43.6 => major.minor.PATCH
|
||||
:local onlyPatchUpdates false;
|
||||
##########
|
||||
|
@ -110,6 +110,7 @@
|
|||
}
|
||||
}
|
||||
log info ("Checking for new firmware version. Current version is: $osVerCurrent");
|
||||
/system package update set channel=$updateChannel;
|
||||
/system package update check-for-updates;
|
||||
:delay 5s;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue