mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2025-08-05 12:44:14 -04:00
remove ssl.conf when using http config
This commit is contained in:
parent
f9f3c919d6
commit
eed32a153c
8 changed files with 24 additions and 12 deletions
|
@ -8,18 +8,27 @@ FOURGET_PROTO="${FOURGET_PROTO#\"}"
|
|||
# make lowercase
|
||||
FOURGET_PROTO=`echo $FOURGET_PROTO | awk '{print tolower($0)}'`
|
||||
|
||||
FOURGET_SRC='/var/www/html/4get'
|
||||
|
||||
mkdir -p /etc/apache2
|
||||
|
||||
if [ "$FOURGET_PROTO" = "https" ]; then
|
||||
echo "Using https configuration"
|
||||
cp /etc/apache2/https.conf /etc/apache2/httpd.conf
|
||||
cp -r ${FOURGET_SRC}/docker/apache/https/httpd.conf /etc/apache2
|
||||
cp -r ${FOURGET_SRC}/docker/apache/https/conf.d/* /etc/apache2/conf.d
|
||||
|
||||
else
|
||||
echo "Using http configuration"
|
||||
cp /etc/apache2/http.conf /etc/apache2/httpd.conf
|
||||
cp -r ${FOURGET_SRC}/docker/apache/http/httpd.conf /etc/apache2
|
||||
cp -r ${FOURGET_SRC}/docker/apache/http/conf.d/* /etc/apache2/conf.d
|
||||
fi
|
||||
|
||||
php ./docker/gen_config.php
|
||||
|
||||
|
||||
echo "4get is running"
|
||||
exec httpd -DFOREGROUND
|
||||
if [ "$@" = "start" ]; then
|
||||
echo "4get is running"
|
||||
exec httpd -DFOREGROUND
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue