-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Fix incorrect environment variable handling #222
Fix incorrect environment variable handling #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the strings are already quoted, like in the examples:
- ADMIN_PASSWORD="adminPasswordHere"
- SERVER_NAME="World of Pals"
- SERVER_DESCRIPTION=""
Then the whole PalWorldSettings.ini gets really wierd with quotes:
ServerName=""World of Pals"",ServerDescription="""",AdminPassword=""adminPasswordHere"",ServerPassword=""worldofpals"",PublicPort=8211,PublicIP="",RCONEnabled=true,RCONPort=25575,Region=""
A check needs to be implemented to see if the vars already have quotes, and if they do not already have quotes then they should be added.
Change the way environment variables to use the following syntax can fix it:
Although this may not be good enough, alternatively, can use sed for additional processing like this. |
f8e9752
to
de34865
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have pushed a new commit that resolves the issue.
Will take a look tonight, unable to do so now |
Docker Documentation doesn't support
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for your work. I've only updated the examples.
does this mean we should change our docker compose file manually to remove all double quote of values when update to 0.19.1? |
@JustusPan Yes, but a check has been put in place that it should work either way |
…ndling Fix incorrect environment variable handling
Context
Choices
PalWorldSettings.ini
,ServerName
,ServerDescription
,AdminPassword
,ServerPassword
,PublicIP
,Region
, andBanListURL
should be enclosed in double quotes.start.sh
.Test instructions
<mount_folder>/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
.SERVER_NAME
with spaces in the .env. e.g. SERVER_NAME="My Palworld Server"Checklist before requesting a review