mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Fix v2ray update
This commit is contained in:
parent
9af99ff2f5
commit
19166a0c58
1 changed files with 3 additions and 1 deletions
|
@ -568,7 +568,6 @@ fi
|
||||||
|
|
||||||
if [ "$V2RAY" = "yes" ]; then
|
if [ "$V2RAY" = "yes" ]; then
|
||||||
#apt-get -y -o Dpkg::Options::="--force-overwrite" install v2ray
|
#apt-get -y -o Dpkg::Options::="--force-overwrite" install v2ray
|
||||||
rm -f /etc/systemd/system/v2ray.service
|
|
||||||
wget -O /tmp/v2ray-${V2RAY_VERSION}-amd64.deb ${VPSURL}/debian/v2ray-${V2RAY_VERSION}-amd64.deb
|
wget -O /tmp/v2ray-${V2RAY_VERSION}-amd64.deb ${VPSURL}/debian/v2ray-${V2RAY_VERSION}-amd64.deb
|
||||||
dpkg --force-all -i -B /tmp/v2ray-${V2RAY_VERSION}-amd64.deb
|
dpkg --force-all -i -B /tmp/v2ray-${V2RAY_VERSION}-amd64.deb
|
||||||
rm -f /tmp/v2ray-${V2RAY_VERSION}-amd64.deb
|
rm -f /tmp/v2ray-${V2RAY_VERSION}-amd64.deb
|
||||||
|
@ -578,6 +577,9 @@ if [ "$V2RAY" = "yes" ]; then
|
||||||
rm /etc/v2ray/config.json
|
rm /etc/v2ray/config.json
|
||||||
ln -s /etc/v2ray/v2ray-server.json /etc/v2ray/config.json
|
ln -s /etc/v2ray/v2ray-server.json /etc/v2ray/config.json
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/systemd/system/v2ray.service.dpkg-dist ]; then
|
||||||
|
mv -f /etc/systemd/system/v2ray.service.dpkg-dist /etc/systemd/system/v2ray.service
|
||||||
|
fi
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable v2ray.service
|
systemctl enable v2ray.service
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue