Update install.sh

This commit is contained in:
Stefan Pejcic 2025-02-18 14:56:17 +01:00 committed by GitHub
parent 1150b49cdd
commit 7bf21c9446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -909,7 +909,6 @@ update_package_manager() {
create_rdnc() {
echo "Setting remote name daemon control (rndc) for DNS.."
mkdir -p /etc/bind/
chmod 777 /etc/bind/
cp -r /etc/openpanel/bind9/* /etc/bind/
# Only on Ubuntu and Debian 12, systemd-resolved is installed
@ -922,7 +921,6 @@ create_rdnc() {
if [ -f "$RNDC_KEY_PATH" ]; then
echo "rndc.key already exists."
chmod 0777 -R /etc/bind
return 0
fi
@ -943,7 +941,8 @@ create_rdnc() {
echo "That is OK if you dont plan on using custom nameservers or DNS Clustering on this server."
fi
chmod 0777 -R /etc/bind
find /etc/bind/ -type d -print0 | xargs -0 chmod 755
find /etc/bind/ -type f -print0 | xargs -0 chmod 644
}