don't redownload python
This commit is contained in:
24
reset.sh
24
reset.sh
@@ -9,18 +9,22 @@
|
||||
# source vars
|
||||
source vars
|
||||
|
||||
# source vars
|
||||
source vars
|
||||
|
||||
# remove nginx conf
|
||||
tput setaf 2
|
||||
echo "Disabling nginx"
|
||||
tput setaf 9
|
||||
systemctl stop nginx 1> /dev/null 2> /dev/null
|
||||
systemctl disable nginx 1> /dev/null 2> /dev/null
|
||||
rm -f /etc/nginx/conf.d/$projectname.conf
|
||||
|
||||
# remove gunicorn
|
||||
tput setaf 2
|
||||
echo "Uninstalling gunicorn"
|
||||
tput setaf 9
|
||||
systemctl disable gunicorn 1> /dev/null 2> /dev/null
|
||||
systemctl stop gunicorn 1> /dev/null 2> /dev/null
|
||||
rm -f /etc/systemd/system/gunicorn.service
|
||||
# remove python
|
||||
echo "Uninstalling Python"
|
||||
for dir in $(whereis python3 | tr " " "\n" | grep usr/local/bin | tr "\n" " ");
|
||||
do rm -r $dir;
|
||||
done;
|
||||
|
||||
# remove sqlite
|
||||
echo "Uninstalling Sqlite3"
|
||||
for dir in $(whereis sqlite3 | tr " " "\n" | grep usr/local/bin | tr "\n" " ");
|
||||
do rm -r $dir;
|
||||
done;
|
||||
Reference in New Issue
Block a user