From 839488436c70bc3f4d3f6b5c06a38c7da0772d31 Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Sat, 21 Sep 2024 22:21:31 +1000 Subject: [PATCH] rm -rf to avoid error when file not exists --- server-nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-nginx.sh b/server-nginx.sh index a70dde2..3d42d08 100755 --- a/server-nginx.sh +++ b/server-nginx.sh @@ -72,7 +72,7 @@ sed -i '/\#STREAM_TAG/q' /etc/nginx/nginx.conf # Remove #STREAM_TAG tag sed -i '/\#STREAM_TAG/d' /etc/nginx/nginx.conf # Remove temp files generated previously. -rm /tmp/stmap.conf; rm /tmp/stups.conf; rm /tmp/stproxy.conf +rm -rf /tmp/stmap.conf; rm -rf /tmp/stups.conf; rm -rf /tmp/stproxy.conf if [ -n "${STSVR}" ]; then options=(`echo $STSVR |tr ',' ' '`)