docs: add a section on how to test changes on a live device

dev
alex 2 years ago
parent ed0002926a
commit 5672f8dbb9
Signed by: x1ddos
GPG Key ID: 540189B756BF5B12

@ -30,3 +30,25 @@ the `update.sh` script once a day. The script requires `REPODIR` and `LOGFILE`
env variables set. env variables set.
TODO: add a list of supported platforms; the "native" is void linux. TODO: add a list of supported platforms; the "native" is void linux.
## testing a live change
the procedure to run a modified sysupdate on the device while ssh'ed into
the instance.
first, make sure periodic updates are disabled:
chmod -x /etc/cron.hourly/sysupdate
then set required env variables and run the apply script:
cd /ssd/sysupdates
export SYSUPDATES_ROOTDIR=$PWD
./apply.sh
to reactivate periodic sysupdates, flip the `x` bit:
chmod +x /etc/cron.hourly/sysupdate
note that the periodic `sysupdate` script will revert the repo to the latest
commit of the branch specified in the script or `master` as the default.

Loading…
Cancel
Save