Add FORCE_HTTPS

Setting FORCE_HTTPS in env forces all generated links to use https
protocol.
This commit is contained in:
chris 2020-06-14 15:32:30 +02:00
parent 0e88d354a6
commit d554839c43
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
#!/usr/bin/env bash
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/
php /wait-for-db.php