-
Notifications
You must be signed in to change notification settings - Fork 62
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.sh
Run 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 | sh
Or download script and run manually:
wget https://raw.githubusercontent.com/trinib/AdGuard-WireGuard-Unbound-Cloudflare/main/assets/scripts/update_adguard.sh
Save file(control+x then y then enter):
Set permission:
sudo chmod +x update_adguard.sh
Run script:
sudo ./update_adguard.sh
You can autorun script in cron job, it will just overwrite if no new version.
Example:
0 3 * * WED sudo ./update_adguard.sh
or 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