From 89d720e6eadb2a5a150406b767126a00313ead62 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 16 Sep 2018 19:00:38 -0400 Subject: [PATCH] add export to vars --- install.sh | 4 ++-- vars | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/install.sh b/install.sh index e795ede..33581b2 100644 --- a/install.sh +++ b/install.sh @@ -17,8 +17,8 @@ tput setaf 0 if [ ! -d $logdir ] ; then mkdir $logdir fi -if [ $install_epel_release = True ] ; then - yum -y install epel-release 1>> $yumlogloc 2>> $yumlogloc 3>> $pylogloc +if [ $install_epel_release=True ] ; then + yum -y install epel-release 1>> $yumlogloc 2>> $yumlogloc 3>> $yumlogloc fi # install dependencies diff --git a/vars b/vars index 9fac9ab..4a68e8b 100644 --- a/vars +++ b/vars @@ -1,24 +1,24 @@ # django project settings -user="centos" -projectname="mysite" -hostname="centos.duco.net" -letsencrypt=False +export user="centos" +export projectname="mysite" +export hostname="centos.duco.net" +export letsencrypt=False # set True if CentOS minimal install -install_epel_release=False +export install_epel_release=False # general install settings -logdir="/var/log/djangosetup/" -yumlogloc=$logdir"yum.log" -yumlogmsg="See $yumlogloc for more info." -firelogloc=$logdir"firewall.log" -firelogmsg="See $firelogloc for more info." -pylogloc=$logdir"python.log" -pylogmsg="See $pylogloc for more info." -djalogloc=$logdir"django.log" -djamsg="See $djalogloc for more info." -gunicornlogloc=$logdir"gunicorn.log" -nginxlogloc=$logdir"nginx.log" +export logdir="/var/log/djangosetup/" +export yumlogloc=$logdir"yum.log" +export yumlogmsg="See $yumlogloc for more info." +export firelogloc=$logdir"firewall.log" +export firelogmsg="See $firelogloc for more info." +export pylogloc=$logdir"python.log" +export pylogmsg="See $pylogloc for more info." +export djalogloc=$logdir"django.log" +export djamsg="See $djalogloc for more info." +export gunicornlogloc=$logdir"gunicorn.log" +export nginxlogloc=$logdir"nginx.log" # python settings -pylink="https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz" \ No newline at end of file +export pylink="https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz" \ No newline at end of file