fix time issue

pull/95/head
233boy 6 years ago
parent 83fd1b3d0b
commit f3ae017179
  1. 5
      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

Loading…
Cancel
Save