mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update install.sh
This commit is contained in:
parent
1150b49cdd
commit
7bf21c9446
@ -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 don’t 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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user