rocky-install-adguard/install-adguard.sh

21 lines
548 B
Bash
Raw Normal View History

2024-08-28 05:03:57 +03:00
#!/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