Skip to content

Commit

Permalink
supress error output (v2fly#211)
Browse files Browse the repository at this point in the history
* supress error output

supress error message "rm: cannot remove '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf': No such file or directory"

Co-authored-by: IceCodeNew <[email protected]>
  • Loading branch information
ir20 and IceCodeNew authored Jul 7, 2021
1 parent bcf5dfd commit 53462ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ install_startup_service_file() {
mkdir -p '/etc/systemd/system/v2ray.service.d'
mkdir -p '/etc/systemd/system/[email protected]/'
if [[ -n "$JSONS_PATH" ]]; then
"rm" '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf' \
"rm" -f '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf' \
'/etc/systemd/system/[email protected]/10-donot_touch_single_conf.conf'
echo "# In case you have a good reason to do so, 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
Expand All @@ -382,7 +382,7 @@ ExecStart=/usr/local/bin/v2ray -confdir $JSONS_PATH" |
tee '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' > \
'/etc/systemd/system/[email protected]/10-donot_touch_multi_conf.conf'
else
"rm" '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' \
"rm" -f '/etc/systemd/system/v2ray.service.d/10-donot_touch_multi_conf.conf' \
'/etc/systemd/system/[email protected]/10-donot_touch_multi_conf.conf'
echo "# In case you have a good reason to do so, 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
Expand Down

0 comments on commit 53462ac

Please sign in to comment.