fix v2ray command not found
This commit is contained in:
@@ -30,6 +30,7 @@ _download_v2ray_file() {
|
|||||||
mkdir -p /usr/bin/v2ray
|
mkdir -p /usr/bin/v2ray
|
||||||
cp -f "/tmp/v2ray/v2ray" "/usr/bin/v2ray/v2ray"
|
cp -f "/tmp/v2ray/v2ray" "/usr/bin/v2ray/v2ray"
|
||||||
chmod +x "/usr/bin/v2ray/v2ray"
|
chmod +x "/usr/bin/v2ray/v2ray"
|
||||||
|
echo "alias v2ray=$_v2ray_sh" >>/root/.bashrc
|
||||||
cp -f "/tmp/v2ray/v2ctl" "/usr/bin/v2ray/v2ctl"
|
cp -f "/tmp/v2ray/v2ctl" "/usr/bin/v2ray/v2ctl"
|
||||||
chmod +x "/usr/bin/v2ray/v2ctl"
|
chmod +x "/usr/bin/v2ray/v2ctl"
|
||||||
}
|
}
|
||||||
|
@@ -86,6 +86,7 @@ if [[ $is_uninstall_v2ray && $is_uninstall_caddy ]]; then
|
|||||||
|
|
||||||
rm -rf /usr/bin/v2ray
|
rm -rf /usr/bin/v2ray
|
||||||
rm -rf $_v2ray_sh
|
rm -rf $_v2ray_sh
|
||||||
|
sed -i '/alias v2ray=/d' /root/.bashrc
|
||||||
rm -rf /etc/v2ray
|
rm -rf /etc/v2ray
|
||||||
rm -rf /var/log/v2ray
|
rm -rf /var/log/v2ray
|
||||||
|
|
||||||
@@ -148,6 +149,7 @@ elif [[ $is_uninstall_v2ray ]]; then
|
|||||||
|
|
||||||
rm -rf /usr/bin/v2ray
|
rm -rf /usr/bin/v2ray
|
||||||
rm -rf $_v2ray_sh
|
rm -rf $_v2ray_sh
|
||||||
|
sed -i '/alias v2ray=/d' /root/.bashrc
|
||||||
rm -rf /etc/v2ray
|
rm -rf /etc/v2ray
|
||||||
rm -rf /var/log/v2ray
|
rm -rf /var/log/v2ray
|
||||||
if [[ $systemd ]]; then
|
if [[ $systemd ]]; then
|
||||||
|
Reference in New Issue
Block a user