Skip to content

Commit c7ac7a6

Browse files
authored
Merge pull request #163 from 21pages/uninstall
uninstall /etc/nginx/conf.d/rustdesk.conf
2 parents e0138ce + 33ff465 commit c7ac7a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uninstall.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ then
153153
ufw delete allow 21115:21119/tcp
154154
# ufw delete 22/tcp # If connected to a remote VPS, this deletion will make the connection go down
155155
ufw delete allow 21116/udp
156-
if [ -f "/etc/nginx/sites-available/rustdesk.conf" ]
156+
if [ -f "/etc/nginx/sites-available/rustdesk.conf" ] || [ -f "/etc/nginx/conf.d/rustdesk.conf" ]
157157
then
158158
ufw delete allow 80/tcp
159159
ufw delete allow 443/tcp
@@ -212,6 +212,7 @@ if [ -n "$REMOVE_NGINX_CONF" ]
212212
then
213213
rm -f "/etc/nginx/sites-available/rustdesk.conf"
214214
rm -f "/etc/nginx/sites-enabled/rustdesk.conf"
215+
rm -f "/etc/nginx/conf.d/rustdesk.conf"
215216
service nginx restart
216217
elif [ -n "$REMOVE_NGINX_ALL" ]
217218
then

0 commit comments

Comments
 (0)