Create adguard-update.sh
This commit is contained in:
parent
fe00c2974c
commit
bd59aa04a2
1 changed files with 13 additions and 0 deletions
13
misc/adguard-update.sh
Normal file
13
misc/adguard-update.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
echo -e "\nStarting Update\n"
|
||||
sleep 3
|
||||
wget -q --show-progress https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
|
||||
tar -xvf AdGuardHome_linux_amd64.tar.gz &>/dev/null
|
||||
systemctl stop AdGuardHome
|
||||
mkdir -p adguard-backup
|
||||
cp -r /opt/AdGuardHome/AdGuardHome.yaml /opt/AdGuardHome/data adguard-backup/
|
||||
cp AdGuardHome/AdGuardHome /opt/AdGuardHome/AdGuardHome
|
||||
cp -r adguard-backup/* /opt/AdGuardHome/
|
||||
systemctl start AdGuardHome
|
||||
rm -rf AdGuardHome_linux_amd64.tar.gz AdGuardHome adguard-backup
|
||||
echo -e "\nFinished\n"
|
Loading…
Reference in a new issue