Shell script to update AdGuardHome on GL.iNet and Asus based routers. Others may work but unsupported.
- Checks for dependencies:
- Free disk space to upgrade
- Properly installed and running version of AGH
- Checks for the correct model and fails if you aren’t running the correct version
- Downloads and parses the available beta and release versions of AGH comparing to your current version and presents an output of the same
- Allows you to switch from beta to release and vice versa or just upgrade to the latest version of your chosen branch (if available)
- Will fetch the correct go binary based on your arch type
- Extracts the tarball (with a check that it can find the new binary file)
- Creates a backup of your existing binary and config files
- Disables your AGH service (temporarily)
- Copies new AGH binary into place
- Reloads AGH service
- Cleans up temp files created
- Status along the way with error handling and graceful exiting if something fails (e.g. cleanup of temp files)
- GL.iNet - MIPS
- Asus - 64Bit ARM
- SSH to your router
- Change to the directory you'd like to download AGH updater
wget https://raw.githubusercontent.com/phantasm22/AdGuardHome-updater/main/update-agh.sh
chmod +x ./update-agh.sh
./update-agh.sh