Merge pull request #30 from v2fly/develop
fix: Incorrect execution of stop_v2ray functionpull/64/head
commit
828c8b28a0
|
@ -513,10 +513,12 @@ main() {
|
|||
fi
|
||||
|
||||
# Determine if V2Ray is running
|
||||
if [[ -n "$(systemctl list-unit-files | grep 'v2ray')" ]]; then
|
||||
if [[ -n "$(pgrep v2ray)" ]]; then
|
||||
stop_v2ray
|
||||
V2RAY_RUNNING='1'
|
||||
fi
|
||||
fi
|
||||
install_v2ray
|
||||
install_startup_service_file
|
||||
echo 'installed: /usr/local/bin/v2ray'
|
||||
|
|
Loading…
Reference in New Issue