Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions koel-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ set -e
# Change to program root directory.
cd /var/www/html

# Set X-SendFile path
if [[ "$MEDIA_PATH" != "/music" ]]; then
echo "Updating XSendFilePath to $MEDIA_PATH"
sed --regexp-extended --in-place "s|XSendFilePath.+$|XSendFilePath $MEDIA_PATH|" /etc/apache2/sites-available/000-default.conf
fi

# Run the next entrypoint in the chain.
echo "running docker-php-entrypoint with arguments $@"
docker-php-entrypoint $@