Prevent corrupt Alias after restart of container.

When the LOCATION environment variable is set then a restart of a container will lead to a corrupt Alias configuration. The command 'sed -e "s|Alias /|Alias $LOCATION|"' will be executed again and thereby prepend the existing path with the same path.
master
Jan Boonen 5 years ago committed by GitHub
parent 9fceea4203
commit 753ffb7ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ fi
# Configure dav.conf
if [ "x$LOCATION" != "x" ]; then
sed -e "s|Alias /|Alias $LOCATION|" \
sed -e "s|Alias .*|Alias $LOCATION /var/lib/dav/data/|" \
-i "$HTTPD_PREFIX/conf/conf-available/dav.conf"
fi
if [ "x$REALM" != "x" ]; then

Loading…
Cancel
Save