bug fix for $114

我 是 傻 逼
pull/120/head
IceCodeNew 2020-09-20 01:27:54 +08:00
parent f0eacd1ca5
commit cbcaf9c5c1
1 changed files with 3 additions and 3 deletions

View File

@ -345,7 +345,7 @@ install_startup_service_file() {
if [[ -n "$JSONS_PATH" ]]; then if [[ -n "$JSONS_PATH" ]]; then
echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost! echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost!
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html ## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart= ExecStart=
ExecStart=/usr/local/bin/v2ray -confdir $JSONS_PATH" | ExecStart=/usr/local/bin/v2ray -confdir $JSONS_PATH" |
tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' > \ tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' > \
@ -356,7 +356,7 @@ ExecStart=/usr/local/bin/v2ray -confdir $JSONS_PATH" |
echo 'info: Please make sure the configuration file path is correctly set.' echo 'info: Please make sure the configuration file path is correctly set.'
echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost! echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost!
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html ## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart= ExecStart=
ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/config.json" | ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/config.json" |
tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf' tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf'
@ -368,7 +368,7 @@ ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/config.json" |
echo 'info: Please make sure the configuration file path is correctly set.' echo 'info: Please make sure the configuration file path is correctly set.'
echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost! echo "# Duplicate this file in the same directory and make your customizes there. Or all changes you made will be lost!
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html ## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart= ExecStart=
ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/%i.json" | ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/%i.json" |
tee '/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf' tee '/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf'