rocky-install-adguard/install-adguard.sh
Eliezer Croitoru 1e028441fc 1
2024-08-27 22:03:57 -04:00

21 lines
548 B
Bash
Executable File

#!/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