fix v2ray service

pull/149/head
boypt 6 years ago committed by cutelua
parent b390bedb1e
commit f153daed3c
  1. 5
      src/download-v2ray.sh

@ -33,13 +33,12 @@ _download_v2ray_file() {
_install_v2ray_service() {
if [[ $systemd ]]; then
cp -f "/tmp/v2ray/systemd/v2ray.service" "/lib/systemd/system/"
install -m 644 "/usr/bin/v2ray/systemd/v2ray.service" "/lib/systemd/system/"
sed -i "s/on-failure/always/" /lib/systemd/system/v2ray.service
systemctl enable v2ray
else
apt-get install -y daemon
cp "/tmp/v2ray/systemv/v2ray" "/etc/init.d/v2ray"
chmod +x "/etc/init.d/v2ray"
install -m 755 "/usr/bin/v2ray/systemv/v2ray" "/etc/init.d/v2ray"
update-rc.d -f v2ray defaults
fi
}

Loading…
Cancel
Save