`shfmt -i 2 -ci`

pull/116/head
IceCodeNew 2020-09-20 00:35:30 +08:00
parent 3a14bbd46f
commit f0eacd1ca5
2 changed files with 478 additions and 479 deletions

View File

@ -41,7 +41,6 @@ download_files() {
fi
}
check_sum() {
(
cd "${dir_tmp}" || exit

View File

@ -347,7 +347,7 @@ install_startup_service_file() {
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
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' > \
'/etc/systemd/system/v2ray@.service.d/10-donot_touch_multi_conf.conf'
else
@ -358,10 +358,10 @@ tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' > \
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
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'
echo;
echo;
echo
echo
echo "${red}~~~~~~~~~~~~~~~~ ${green}/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf ${red}~~~~~~~~~~~~~~~~${reset}"
echo 'info: The following are the actual parameters for the v2ray service startup.'
@ -370,10 +370,10 @@ tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf'
## Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
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'
echo;
echo;
echo
echo
fi
systemctl daemon-reload
SYSTEMD='1'