Update install.sh
This commit is contained in:
@@ -383,7 +383,7 @@ if [ $CMD_LINE -eq 0 ]; then
|
||||
if [ -s "${CB_OPTIONS}" ]; then
|
||||
DL=`grep -m1 ^downloadserver= ${CB_OPTIONS} | cut -d= -f2`
|
||||
if [ "${DL}" != "" ]; then
|
||||
SERVER=http://${DL}/services
|
||||
SERVER=https://da-mirror.wpcloud.vn/services
|
||||
FTP_HOST=${DL}
|
||||
fi
|
||||
fi
|
||||
@@ -487,11 +487,11 @@ if [ "$OS" != "FreeBSD" ] && [ "$OS" != "debian" ]; then
|
||||
if [ -s /usr/lib/systemd/system/named.service ]; then
|
||||
mv /usr/lib/systemd/system/named.service /etc/systemd/system/named.service
|
||||
else
|
||||
wget -O /etc/systemd/system/named.service ${SERVER}/services/custombuild/2.0/custombuild/configure/systemd/named.service
|
||||
wget -O /etc/systemd/system/named.service ${SERVER}/custombuild/2.0/custombuild/configure/systemd/named.service
|
||||
fi
|
||||
fi
|
||||
if [ ! -s /usr/lib/systemd/system/named-setup-rndc.service ]; then
|
||||
wget -O /usr/lib/systemd/system/named-setup-rndc.service ${SERVER}/services/custombuild/2.0/custombuild/configure/systemd/named-setup-rndc.service
|
||||
wget -O /usr/lib/systemd/system/named-setup-rndc.service ${SERVER}/custombuild/2.0/custombuild/configure/systemd/named-setup-rndc.service
|
||||
fi
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
Reference in New Issue
Block a user