-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overwrite server.conf settings only for provided env vars (#76)
* Overwrite server.conf settings only for provided env vars Currently on every start the whole server.conf file gets replaced which causes any changed settings during runtime to get lost * Fix readme formatting * Add "webUIEnabled" env variable This is the only setting that can not be changed via the UI * Remove default values from readme
- Loading branch information
Showing
5 changed files
with
122 additions
and
118 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# exit early in case the file already exists | ||
if [ -f /home/suwayomi/.local/share/Tachidesk/server.conf ]; then | ||
exit 0 | ||
fi | ||
|
||
mkdir -p /home/suwayomi/.local/share/Tachidesk | ||
|
||
# extract the server reference config from the jar | ||
unzip -q -j /home/suwayomi/startup/tachidesk_latest.jar "server-reference.conf" -d /home/suwayomi/startup | ||
|
||
# move and rename the reference config | ||
mv /home/suwayomi/startup/server-reference.conf /home/suwayomi/.local/share/Tachidesk/server.conf |
Oops, something went wrong.