From bd59aa04a236a75e58f61e68cbcb2b74d6c0d2b9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 9 Nov 2022 12:31:41 -0500 Subject: [PATCH] Create adguard-update.sh --- misc/adguard-update.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 misc/adguard-update.sh diff --git a/misc/adguard-update.sh b/misc/adguard-update.sh new file mode 100644 index 00000000..f3018cf1 --- /dev/null +++ b/misc/adguard-update.sh @@ -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"