This commit is contained in:
Eliezer Croitoru 2024-08-27 22:03:57 -04:00
commit 1e028441fc
2 changed files with 21 additions and 0 deletions

20
install-adguard.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
mkdir tmp -p
wget "https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh" -O "tmp/install-adguard.sh"
CHECKSUM=$( md5sum tmp/install-adguard.sh | awk '{print $1}')
KNOWN_CHECKSUM=$(cat installer.sig | awk '{print $1}' )
if [ "${CHECKSUM}" == "${KNOWN_CHECKSUM}" ]
then
bash tmp/install-adguard.sh
else
echo "Error in checksum verification of the installer"
exit 1
fi
firewall-cmd --add-service={dns,http,https} --permanent
firewall-cmd --add-port=3000/tcp --permanent
firewall-cmd --reload

1
installer.sig Normal file
View File

@ -0,0 +1 @@
55232e0fcbd6be69ababe0129e64a445 tmp/install-adguard.sh