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