Fix text color issue

This commit is contained in:
Reese
2018-09-19 20:16:45 -04:00
parent ce290c6dc8
commit d061479129

View File

@@ -12,7 +12,7 @@ cd /root/
tput setaf 2 tput setaf 2
echo -e "Installing dependencies" echo -e "Installing dependencies"
tput setaf 0 tput setaf 9
# create necessary dirs # create necessary dirs
if [ ! -d $logdir ] ; then if [ ! -d $logdir ] ; then
mkdir $logdir mkdir $logdir
@@ -63,7 +63,7 @@ fi
################################################################################ ################################################################################
tput setaf 2 tput setaf 2
echo -e "Installing Python" echo -e "Installing Python"
tput setaf 0 tput setaf 9
# fetch Python # fetch Python
wget $pylink 1> $pylogloc 2>> $pylogloc wget $pylink 1> $pylogloc 2>> $pylogloc
@@ -128,7 +128,7 @@ fi
################################################################################ ################################################################################
tput setaf 2 tput setaf 2
echo -e "Starting Django project" echo -e "Starting Django project"
tput setaf 0 tput setaf 9
adduser $user 1> /dev/null 2> /dev/null adduser $user 1> /dev/null 2> /dev/null
if [ ! -d "/home/$user" ] ; then if [ ! -d "/home/$user" ] ; then
@@ -227,7 +227,7 @@ cd /root/
################################################################################ ################################################################################
tput setaf 2 tput setaf 2
echo -e "Setting up gunicorn" echo -e "Setting up gunicorn"
tput setaf 0 tput setaf 9
echo -e " echo -e "
[Unit] [Unit]
Description=gunicorn daemon Description=gunicorn daemon
@@ -253,7 +253,7 @@ systemctl enable gunicorn 1>> $gunicornlogloc 2>> $gunicornlogloc
################################################################################ ################################################################################
tput setaf 2 tput setaf 2
echo -e "Configuring Nginx" echo -e "Configuring Nginx"
tput setaf 0 tput setaf 9
echo -e " echo -e "
server { server {
listen 80; listen 80;
@@ -284,5 +284,5 @@ systemctl enable nginx 1>> $nginxlogloc 2>> $nginxlogloc
tput setaf 2 tput setaf 2
echo -e "Done! Navigate to $hostname to access the site. Logs can be found in $logdir" echo -e "Done! Navigate to $hostname to access the site. Logs can be found in $logdir"
tput setaf 0 tput setaf 9
exit 0 exit 0