Add FORCE_HTTPS
Setting FORCE_HTTPS in env forces all generated links to use https protocol.pull/1/head
parent
0e88d354a6
commit
d554839c43
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -xeo pipefail
|
set -xeo pipefail
|
||||||
|
|
||||||
|
if [ ! -z $FORCE_HTTPS ]
|
||||||
|
then
|
||||||
|
sed -i 's#</VirtualHost#SetEnv HTTPS on\n</VirtualHost#' /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
fi
|
||||||
|
|
||||||
cp -r storage.skel/* storage/
|
cp -r storage.skel/* storage/
|
||||||
|
|
||||||
php /wait-for-db.php
|
php /wait-for-db.php
|
||||||
|
|
Loading…
Reference in New Issue