diff options
author | Michal Kostewicz <m.kostewicz84@gmail.com> | 2021-02-09 21:28:23 +0100 |
---|---|---|
committer | Michal Kostewicz <m.kostewicz84@gmail.com> | 2021-02-09 21:28:23 +0100 |
commit | 0a3ce5a9e37dd917cfabdf97fdc18a41d88c65eb (patch) | |
tree | 01e9767525f8c710b64119d8fd1e0c1c0807e49b /docker/entrypoint.sh | |
parent | Fix DATA_DIR examples in README.md (diff) | |
download | ferdium-server-0a3ce5a9e37dd917cfabdf97fdc18a41d88c65eb.tar.gz ferdium-server-0a3ce5a9e37dd917cfabdf97fdc18a41d88c65eb.tar.zst ferdium-server-0a3ce5a9e37dd917cfabdf97fdc18a41d88c65eb.zip |
Fix all issues found on CR -> especially update README.md, remove creation of new config.txt, update ignore files.
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-x | docker/entrypoint.sh | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 0bbcb9d..eac3fc8 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh | |||
@@ -14,17 +14,11 @@ Support our Open Collective at: | |||
14 | https://opencollective.com/getferdi/ | 14 | https://opencollective.com/getferdi/ |
15 | EOL | 15 | EOL |
16 | 16 | ||
17 | # if config.txt doesn't exist then create one with default values | 17 | # use config.txt or .env.example parameter values as default if they are not passed to container |
18 | if [ ! -f /config/config.txt ]; then | 18 | if [ -f /config/config.txt ]; then |
19 | cp /app/.env.example /config/config.txt | 19 | cp /config/config.txt /app/.env |
20 | fi | 20 | else |
21 | 21 | cp /app/.env.example /app/.env | |
22 | # use config.txt default values as .env file | ||
23 | if [ -f /app/.env ]; then | ||
24 | rm /app/.env | ||
25 | ln -s /config/config.txt /app/.env | ||
26 | elif [ ! -f /app/.env ]; then | ||
27 | ln -s /config/config.txt /app/.env | ||
28 | fi | 22 | fi |
29 | 23 | ||
30 | # Create APP key if needed | 24 | # Create APP key if needed |