1
This commit is contained in:
commit
1e028441fc
20
install-adguard.sh
Executable file
20
install-adguard.sh
Executable 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
1
installer.sig
Normal file
@ -0,0 +1 @@
|
||||
55232e0fcbd6be69ababe0129e64a445 tmp/install-adguard.sh
|
Loading…
Reference in New Issue
Block a user