fix time issue
This commit is contained in:
@@ -872,12 +872,13 @@ install_v2ray() {
|
|||||||
# $cmd install -y lrzsz git zip unzip curl wget qrencode bind-utils iptables-services
|
# $cmd install -y lrzsz git zip unzip curl wget qrencode bind-utils iptables-services
|
||||||
# fi
|
# fi
|
||||||
if [[ $cmd == "apt-get" ]]; then
|
if [[ $cmd == "apt-get" ]]; then
|
||||||
$cmd install -y lrzsz git zip unzip curl wget qrencode libcap2-bin
|
$cmd install -y lrzsz git zip unzip curl wget qrencode libcap2-bin ntpdate
|
||||||
else
|
else
|
||||||
$cmd install -y lrzsz git zip unzip curl wget qrencode libcap iptables-services
|
$cmd install -y lrzsz git zip unzip curl wget qrencode libcap iptables-services ntpdate
|
||||||
fi
|
fi
|
||||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
[ -d /etc/v2ray ] && rm -rf /etc/v2ray
|
[ -d /etc/v2ray ] && rm -rf /etc/v2ray
|
||||||
|
ntpdate -u cn.pool.ntp.org
|
||||||
|
|
||||||
if [[ $local_install ]]; then
|
if [[ $local_install ]]; then
|
||||||
if [[ ! -d $(pwd)/config ]]; then
|
if [[ ! -d $(pwd)/config ]]; then
|
||||||
|
Reference in New Issue
Block a user