diff --git a/codepot/docker/apache2-fg.sh b/codepot/docker/apache2-fg.sh index 3e32fd3d..7c1711de 100755 --- a/codepot/docker/apache2-fg.sh +++ b/codepot/docker/apache2-fg.sh @@ -49,7 +49,14 @@ mkdir -p /var/cache/codepot /var/log/codepot chown -R www-data:www-data /var/lib/codepot /var/cache/codepot /var/log/codepot [ ! -f /var/lib/codepot/codepot.ini ] && cp -pf /etc/codepot/codepot.ini /var/lib/codepot/codepot.ini -export CODEPOT_CONFIG_FILE=/var/lib/codepot/codepot.ini + +grep -F -q '' /etc/apache2/conf-enabled/codepot.conf || { + cat <> /etc/apache2/conf-enabled/codepot.conf + + SetEnv CODEPOT_CONFIG_FILE /var/lib/codepot/codepot.ini + +EOF +} #httpd server in the foreground exec apache2 -DFOREGROUND "$@"