File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ WORKDIR /DjangoSites
2929
3030RUN chmod 755 /bin/apache-site-conf.sh \
3131 && chmod 755 /bin/apache-site-conf.py
32- apt-get update && apt-get install -y apache2 \
32+
33+ RUN apt-get update && apt-get install -y apache2 \
3334 python \
3435 python-pip \
3536 python-dev \
Original file line number Diff line number Diff line change 2727
2828# apache_conf Funtion
2929apache_conf () {
30- if [[ -d $djangodirname /$directory ]]; then
31- apacheconfname=" ${directory ,,} .conf"
30+ if [[ -d $djangodirname /$1 ]]; then
31+ apacheconfname=" ${1 ,,} .conf"
3232 if [[ ! -f " $apachedirname /$apacheconfname " ]]; then
3333 echo " Creating apache config $apachedirname /$apacheconfname "
3434 echo " <VirtualHost *:80>" >> $apachedirname /$apacheconfname
@@ -97,13 +97,13 @@ apache_conf () {
9797}
9898
9999if [[ -n " $SITE_DIRECTORY_NAME " ]]; then
100- directory=$SITE_DIRECTORY_NAME
101- apache_conf
102-
100+ directory=" $SITE_DIRECTORY_NAME "
101+ apache_conf directory
102+
103103else
104104
105105 for directory in $( ls $djangodirname ) ; do
106- apache_conf
106+ apache_conf directory
107107
108108 done
109109
You can’t perform that action at this time.
0 commit comments