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