forked from zopanix/docker_factorio_server
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Creation of Server Settings Based On Environment Variables #304
Open
deefdragon
wants to merge
27
commits into
factoriotools:master
Choose a base branch
from
deefdragon:env_vars
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
c4c1ebb
insert example files to use for starting the template
80eb02f
Added UpdateTemplate Function
c0498cb
ServerSettings in bash done.
7c3971e
update quotes to prevent globing, and allow for expansion
01425f3
replace values with template keys
6995163
Change template keys with substrings
8393065
add newline to end of server settings template
bd44ae6
Complete Shell Map Gen Settings
bddbd4a
add quotes to quoted areas.
b39b141
replace map gen template values with sed keys
319683b
add extra space
c5cb7b1
Completed script for map settings
26bc037
update template
37c03e5
add newline at end of template
65b34a6
remove shebang space.
bd18cba
move settigns file generation from docker-entrypoint.sh and create-se…
e9dc37b
Add environment Variable to enable settings file generation
2dedaab
add table of options to the readme, and several options to controll p…
b59f73b
add backing up old settings files
fa4adb5
Merge branch 'master' into env_vars
c7e3a8e
add env_vars files to 0.18 folder
8ec7688
update to prevent globbing and word splitting
fdc5758
remove unnecessary quotes
3adce84
make create-settings executable
4cf70cd
Fix Unset Variable Error
8896984
Merge branch 'master' of github.com:factoriotools/factorio-docker int…
6a2eee0
Fix to allow for new 0.18 settings, and to properly check for setting…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think those changes are a mistake.
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.
Basing off of https://linuxize.com/post/bash-check-if-file-exists/ and that i was getting errors when I had it the other way.
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 don't know why it should error but right now it checks if the file does exist and then copies the default file but we want to do it when the file does not exist.
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.
This is the section that backs up an existing settings file (if you force the update of the settings via FORCE_GENERATE_SETTINGS_FILES). As such, if the file exists, we want to back it up. Lines 278-295 are the ones that you might be confusing these with. those are the ones that only move the generated settings file in if a file does not already exist.