mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-10 06:42:12 +01:00
* 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
15 lines
482 B
Bash
15 lines
482 B
Bash
#!/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
|