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