forked from v2fly/fhs-install-v2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1fb703
commit ccd02ac
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,7 +328,7 @@ install_v2ray() { | |
fi | ||
|
||
# Install V2Ray configuration file to $JSON_PATH | ||
# shellcheck disable=SC2153 | ||
# shellcheck disable=SC2153 | ||
if [[ -z "$JSONS_PATH" ]] && [[ ! -d "$JSON_PATH" ]]; then | ||
install -d "$JSON_PATH" | ||
echo "{}" > "${JSON_PATH}/config.json" | ||
|
@@ -394,7 +394,7 @@ ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/%i.json" > \ | |
echo "${red}warning: ${green}The following are the actual parameters for the v2ray service startup." | ||
echo "${red}warning: ${green}Please make sure the configuration file path is correctly set.${reset}" | ||
systemd-analyze cat-config /etc/systemd/system/v2ray.service | ||
# shellcheck disable=SC2154 | ||
# shellcheck disable=SC2154 | ||
if [[ x"${check_all_service_files:0:1}" = x'y' ]]; then | ||
echo | ||
echo | ||
|
@@ -451,12 +451,12 @@ remove_v2ray() { | |
stop_v2ray | ||
fi | ||
if ! ("rm" -r '/usr/local/bin/v2ray' \ | ||
'/usr/local/bin/v2ctl' \ | ||
"$DAT_PATH" \ | ||
'/etc/systemd/system/v2ray.service' \ | ||
'/etc/systemd/system/[email protected]' \ | ||
'/etc/systemd/system/v2ray.service.d' \ | ||
'/etc/systemd/system/[email protected]'); then | ||
'/usr/local/bin/v2ctl' \ | ||
"$DAT_PATH" \ | ||
'/etc/systemd/system/v2ray.service' \ | ||
'/etc/systemd/system/[email protected]' \ | ||
'/etc/systemd/system/v2ray.service.d' \ | ||
'/etc/systemd/system/[email protected]'); then | ||
echo 'error: Failed to remove V2Ray.' | ||
exit 1 | ||
else | ||
|