Misc cosmetical fixes

This commit is contained in:
Mark Vainomaa 2018-09-23 16:26:46 +03:00
parent 7250641d47
commit 04d9cc8a92
No known key found for this signature in database
GPG key ID: 1B3F9523B542D315

View file

@ -104,16 +104,19 @@ prefetch: yes' >> /etc/unbound/unbound.conf
sed -i 's|# hide-identity: no|hide-identity: yes|' /etc/unbound/unbound.conf sed -i 's|# hide-identity: no|hide-identity: yes|' /etc/unbound/unbound.conf
sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf
sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf
fi fi
elif [[ "$OS" = "arch" ]]; then elif [[ "$OS" = "arch" ]]; then
# Install Unbound # Install Unbound
pacman -Syu unbound expat pacman -Syu unbound expat
#Permissions for the DNSSEC keys
# Permissions for the DNSSEC keys
chown root:unbound /etc/unbound chown root:unbound /etc/unbound
chmod 775 /etc/unbound chmod 775 /etc/unbound
# Get root servers list # Get root servers list
wget https://www.internic.net/domain/named.root -O /etc/unbound/root.hints wget https://www.internic.net/domain/named.root -O /etc/unbound/root.hints
# Configuration # Configuration
mv /etc/unbound/unbound.conf /etc/unbound/unbound.conf.old mv /etc/unbound/unbound.conf /etc/unbound/unbound.conf.old
echo 'server: echo 'server: