Uninstall

This commit is contained in:
fred 2024-01-31 11:36:03 +01:00
parent b66c1be838
commit 2870305b10
2 changed files with 6 additions and 21 deletions

View File

@ -1,21 +0,0 @@
#!/bin/bash
#script to create the nginx configuraiton file
echo "server {" > ~/.zen/tmp/astroport_nginx.conf
echo " listen 443;" >> ~/.zen/tmp/astroport_nginx.conf
echo " server_name astroport.locallhost;" >> ~/.zen/tmp/astroport_nginx.conf
for i in {12245..12445};
do
echo " location /$i {" >> ~/.zen/tmp/astroport_nginx.conf
echo " proxy_pass http://localhost:$i;" >> ~/.zen/tmp/astroport_nginx.conf
echo " }" >> ~/.zen/tmp/astroport_nginx.conf
i=$(($i + 1))
done
echo "}" >> ~/.zen/tmp/astroport_nginx.conf
## IN CASE YOU WANT TO ACCESS API THROUGH HTTPS
echo "~/.zen/tmp/astroport_nginx.conf"
echo "Add this file to your nginx config and activate https using certbot..."
echo "TODO: make it easier ;)"

View File

@ -24,6 +24,12 @@ fi
# RESTORE OLD KODI
[[ -e ~/.kodi.old ]] && echo "RESTORE KODI" && rm -Rf ~/.kodi && mv ~/.kodi.old ~/.kodi
########################################################################
# RESTORE resolv.conf
[[ -s /etc/resolv.conf.backup ]] && echo "RESTORE resolv.conf" \
&& sudo chattr -i /etc/resolv.conf \
&& sudo cat /etc/resolv.conf.backup > /etc/resolv.conf
########################################################################
echo "REMOVE cron_MINUTE from CRONTAB"