Silent installation - thread update

The previous thread was locked as no updates.

Wanted to post what I ended up doing with the offered solution.

I created a update-vyos.sh script in /config/scripts (chmod 755)

#!/bin/vbash

printf '%s\n' "Yes" "" "Yes" "Yes" | /opt/vyatta/bin/vyatta-op-cmd-wrapper add system image https://downloads.vyos.io/rolling/current/amd64/vyos-rolling-latest.iso && reboot now

exit 0

The added a task to auto-schedule this, currently running every Sunday at 4am.

task update-vyos {
	crontab-spec "0 4 * * SUN"
	executable {
		path /config/scripts/update-vyos.sh
   }
}

Works fine and means I get the new rolling update applied weekly to my router.

5 Likes