mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 14:51:50 +02:00
Update Dockerfile
This commit is contained in:
@@ -49,7 +49,8 @@ RUN \
|
|||||||
&& cp -rf /var/* /var2/ \
|
&& cp -rf /var/* /var2/ \
|
||||||
&& chown -R www-data:www-data /var2/www/webtrees \
|
&& chown -R www-data:www-data /var2/www/webtrees \
|
||||||
# Allow healthcheck
|
# Allow healthcheck
|
||||||
&& for files in /etc/apache2/sites-*/*.conf; do sed -i "/<Directory/i\ BrowserMatchNoCase ^healthcheck nolog" "$files"; done \
|
&& for file in /etc/apache2/sites-*/*.conf; do \
|
||||||
|
sed -i '/<VirtualHost/a\\n # Match requests with the custom User-Agent "HealthCheck"\\n SetEnvIf User-Agent "HealthCheck" dontlog\\n # Exclude matching requests from access logs\\n CustomLog /var/log/apache2/access.log combined env=!dontlog' "$file"; done
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 3 Install apps #
|
# 3 Install apps #
|
||||||
|
|||||||
Reference in New Issue
Block a user