rm configuration file which could mess things up.
parent
617ab1bd07
commit
2894fc4e9a
|
@ -362,6 +362,8 @@ install_startup_service_file() {
|
||||||
mkdir -p '/etc/systemd/system/v2ray.service.d'
|
mkdir -p '/etc/systemd/system/v2ray.service.d'
|
||||||
mkdir -p '/etc/systemd/system/v2ray@.service.d/'
|
mkdir -p '/etc/systemd/system/v2ray@.service.d/'
|
||||||
if [[ -n "$JSONS_PATH" ]]; then
|
if [[ -n "$JSONS_PATH" ]]; then
|
||||||
|
"rm" '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf' \
|
||||||
|
'/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf';
|
||||||
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]
|
[Service]
|
||||||
|
@ -370,6 +372,8 @@ 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' > \
|
||||||
'/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
|
else
|
||||||
|
"rm" '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' \
|
||||||
|
'/etc/systemd/system/v2ray@.service.d/10-donot_touch_multi_conf.conf';
|
||||||
echo "${red}~~~~~~~~~~~~~~~~ ${green}/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf ${red}~~~~~~~~~~~~~~~~${reset}"
|
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.'
|
echo 'info: The following are the actual parameters for the v2ray service startup.'
|
||||||
echo 'info: Please make sure the configuration file path is correctly set.'
|
echo 'info: Please make sure the configuration file path is correctly set.'
|
||||||
|
|
Loading…
Reference in New Issue