diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-05 18:35:39 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-07 14:54:35 +0000 |
commit | a8e73794ec421ad2bb0053214504f20a1dc3b21a (patch) | |
tree | def1b03e7a364803f21239a39dff56a1238b563a /src/systemd | |
parent | 735767f09f891c438e43565f935b927e6f1b317d (diff) | |
download | vyos-1x-a8e73794ec421ad2bb0053214504f20a1dc3b21a.tar.gz vyos-1x-a8e73794ec421ad2bb0053214504f20a1dc3b21a.zip |
update-check: T3476: Allow update-check for VyOS images
Ability to autocheck available new images
Parse remote URL JSON image-version.json file and compare version
VyOS with a local current version, if find diff sent wall
message that the new image is available
Also, add op-mode command to check images "show system image"
With option "auto-check" check will be once per 12 hours
set system update-check auto-check
set system update-check url 'http://example.com/image-version.json'
If new version is available shows it per login (MOTD)
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/vyos-system-update.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/systemd/vyos-system-update.service b/src/systemd/vyos-system-update.service new file mode 100644 index 000000000..032e5a14c --- /dev/null +++ b/src/systemd/vyos-system-update.service @@ -0,0 +1,11 @@ +[Unit] +Description=VyOS system udpate-check service +After=network.target vyos-router.service + +[Service] +Type=simple +Restart=always +ExecStart=/usr/bin/python3 /usr/libexec/vyos/system/vyos-system-update-check.py --config /run/vyos-system-update.conf + +[Install] +WantedBy=multi-user.target |