From f3ae017179c0b234c61ffef737d3ff646ea65ba0 Mon Sep 17 00:00:00 2001 From: 233boy Date: Wed, 14 Nov 2018 21:37:08 +0800 Subject: [PATCH] fix time issue --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0ddf8c7..51b2e4d 100644 --- a/install.sh +++ b/install.sh @@ -711,12 +711,13 @@ caddy_config() { install_v2ray() { $cmd update -y 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 - $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 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime [ -d /etc/v2ray ] && rm -rf /etc/v2ray + ntpdate -u cn.pool.ntp.org if [[ $local_install ]]; then if [[ ! -d $(pwd)/config ]]; then