Merge pull request #30 from v2fly/develop

fix: Incorrect execution of stop_v2ray function
pull/64/head
Dct Mei 2020-07-26 15:41:39 +00:00 committed by GitHub
commit 828c8b28a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -513,9 +513,11 @@ main() {
fi fi
# Determine if V2Ray is running # Determine if V2Ray is running
if [[ -n "$(pgrep v2ray)" ]]; then if [[ -n "$(systemctl list-unit-files | grep 'v2ray')" ]]; then
stop_v2ray if [[ -n "$(pgrep v2ray)" ]]; then
V2RAY_RUNNING='1' stop_v2ray
V2RAY_RUNNING='1'
fi
fi fi
install_v2ray install_v2ray
install_startup_service_file install_startup_service_file