-
Notifications
You must be signed in to change notification settings - Fork 64
AdGuard Home update script
trinib edited this page Nov 9, 2022
·
14 revisions
Currently set for stable releases only. For beta or edge, change channel variable in script(close to end of file).
Or change it from command line when script is downloaded:
sed -i '498s/'release'/'beta'/g' update_adguard.shRun script(for stable only) through network from command line:
curl -s -L https://raw.githubusercontent.com/trinib/AdGuard-WireGuard-Unbound-Cloudflare/main/assets/scripts/update_adguard.sh | shOr download script and run manually:
wget https://raw.githubusercontent.com/trinib/AdGuard-WireGuard-Unbound-Cloudflare/main/assets/scripts/update_adguard.shSave file(control+x then y then enter):
Set permission:
sudo chmod +x update_adguard.shRun script:
sudo ./update_adguard.shYou can autorun script in cron job, it will just overwrite if no new version.
Example:
0 3 * * WED sudo ./update_adguard.shor with curl(for stable only, edit script with other channel and use link from your own repo)
0 3 * * WED curl -s -L https://raw.githubusercontent.com/trinib/AdGuard-WireGuard-Unbound-Cloudflare/main/assets/scripts/update_adguard.sh | sh