Skip to content

Commit

Permalink
Merge pull request #163 from 21pages/uninstall
Browse files Browse the repository at this point in the history
uninstall /etc/nginx/conf.d/rustdesk.conf
  • Loading branch information
rustdesk authored Nov 28, 2023
2 parents e0138ce + 33ff465 commit c7ac7a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ then
ufw delete allow 21115:21119/tcp
# ufw delete 22/tcp # If connected to a remote VPS, this deletion will make the connection go down
ufw delete allow 21116/udp
if [ -f "/etc/nginx/sites-available/rustdesk.conf" ]
if [ -f "/etc/nginx/sites-available/rustdesk.conf" ] || [ -f "/etc/nginx/conf.d/rustdesk.conf" ]
then
ufw delete allow 80/tcp
ufw delete allow 443/tcp
Expand Down Expand Up @@ -212,6 +212,7 @@ if [ -n "$REMOVE_NGINX_CONF" ]
then
rm -f "/etc/nginx/sites-available/rustdesk.conf"
rm -f "/etc/nginx/sites-enabled/rustdesk.conf"
rm -f "/etc/nginx/conf.d/rustdesk.conf"
service nginx restart
elif [ -n "$REMOVE_NGINX_ALL" ]
then
Expand Down

0 comments on commit c7ac7a6

Please sign in to comment.