remove Python install files
This commit is contained in:
@@ -117,6 +117,7 @@ if [ $? -ne 0 ] ; then
|
||||
fi
|
||||
cd /root/
|
||||
rm Python-3.7.0.tar.xz >> $pylogloc
|
||||
rm Python-3.7.0 >> $pylogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to remove Python tar file. $pylogmsg"
|
||||
fi
|
||||
@@ -129,7 +130,7 @@ tput setaf 2
|
||||
echo -e "Starting Django project"
|
||||
tput setaf 0
|
||||
|
||||
adduser $user > /dev/null
|
||||
adduser $user 1> /dev/null 2> /dev/null
|
||||
if [ ! -d "/home/$user" ] ; then
|
||||
mkdir /home/$user
|
||||
chown -R $user:$user /home/$user
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
tput setaf 2
|
||||
echo "Uninstalling nginx"
|
||||
tput setaf 0
|
||||
systemctl stop nginx > /dev/null
|
||||
systemctl disable nginx > /dev/null
|
||||
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 0
|
||||
systemctl disable gunicorn > /dev/null
|
||||
systemctl stop gunicorn > /dev/null
|
||||
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 project
|
||||
|
||||
Reference in New Issue
Block a user