Skip to content

Commit

Permalink
Merge pull request #30 from v2fly/develop
Browse files Browse the repository at this point in the history
fix: Incorrect execution of stop_v2ray function
  • Loading branch information
dctxmei authored Jul 26, 2020
2 parents 422f387 + d72aa48 commit 828c8b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,11 @@ main() {
fi

# Determine if V2Ray is running
if [[ -n "$(pgrep v2ray)" ]]; then
stop_v2ray
V2RAY_RUNNING='1'
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
Expand Down

0 comments on commit 828c8b2

Please sign in to comment.