From cbcaf9c5c19ff746e7b790a92098f8b69b8f1c1b Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Sun, 20 Sep 2020 01:27:54 +0800 Subject: [PATCH] bug fix for $114 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我 是 傻 逼 --- install-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-release.sh b/install-release.sh index 3be4d75..d0d92a5 100644 --- a/install-release.sh +++ b/install-release.sh @@ -345,7 +345,7 @@ install_startup_service_file() { 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! ## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html - +[Service] ExecStart= ExecStart=/usr/local/bin/v2ray -confdir $JSONS_PATH" | 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 "# 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 - +[Service] ExecStart= ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/config.json" | 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 "# 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 - +[Service] ExecStart= ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/%i.json" | tee '/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf'