Skip to content

Commit

Permalink
添加run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HuaRongSAO committed Jun 2, 2018
1 parent 72975ac commit 9c9ec79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN chmod 755 /*.sh

RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html

RUN git clone https://github.com/firesunCN/BlueLotus_XSSReceiver.git /app/tmp/ && \
RUN git clone https://github.com/firesunCN/BlueLotus_XSSReceiver.git --depth 1 /app/tmp/ && \
mv /app/tmp/* /app/ && \
rm -fr /app/tmp/ && \
mv /app/config-sample.php /app/config.php && \
Expand Down
13 changes: 13 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
chown www-data:www-data /app -R

if [ "$ALLOW_OVERRIDE" = "**False**" ]; then
unset ALLOW_OVERRIDE
else
sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
a2enmod rewrite
fi

source /etc/apache2/envvars
echo "====== log file : /var/log/apache2/* ======="
exec apache2 -D FOREGROUND

0 comments on commit 9c9ec79

Please sign in to comment.