Skip to content

fix substitution of APP_URL when provided #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

klutchell
Copy link
Contributor

@klutchell klutchell commented Aug 18, 2020

linuxserver.io


We welcome all PR’s though this doesn’t guarantee it will be accepted.

Description:

Looking at the following line, I can see why APP_URL is not being applied in /config/www/.env

# set appurl if detected
[[ "${APP_URL}" ]] && sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /config/www/.env

This substitution is expecting # APP_URL but the example env file doesn't include a space: #APP_URL.

The workaround is to manually edit your /config/www/.env file and avoid providing environment variables that would cause it to be overwritten.

Benefits of this PR and context:

Fixes one of the symptoms described in #58

How Has This Been Tested?

I tested the new sed string from the command line, before copying the patched 50-config into the existing v0.29.3-ls99 image.

klutchell/balena-bookstack@703a0eb

Source / References:

#58
klutchell/balena-bookstack@703a0eb

@LinuxServer-CI
Copy link
Collaborator

klutchell added a commit to klutchell/balena-bookstack that referenced this pull request Aug 18, 2020
@aptalca aptalca changed the base branch from master to updates September 17, 2020 19:39
@aptalca aptalca merged commit a7309ca into linuxserver:updates Sep 17, 2020
@LinuxServer-CI
Copy link
Collaborator

klutchell added a commit to klutchell/balena-bookstack that referenced this pull request Dec 3, 2020
linuxserver/docker-bookstack#62

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants