diff options
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-x | docker/entrypoint.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 8d00250..e38a8b3 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh | |||
@@ -14,13 +14,6 @@ Support our Open Collective at: | |||
14 | https://opencollective.com/getferdi/ | 14 | https://opencollective.com/getferdi/ |
15 | EOL | 15 | EOL |
16 | 16 | ||
17 | # Use of config.txt in this image is deprecated. Users should include the environmental variables listed in the README.md when the running the container or use docker compose with an .env file based on the included .env.example. | ||
18 | #if [ -f /config/config.txt ]; then | ||
19 | # cp /config/config.txt /app/.env | ||
20 | #else | ||
21 | # cp /app/.env.example /app/.env | ||
22 | #fi | ||
23 | |||
24 | # Create APP key if needed | 17 | # Create APP key if needed |
25 | if [ ! -f "/config/FERDI_APP_KEY.txt" ]; | 18 | if [ ! -f "/config/FERDI_APP_KEY.txt" ]; |
26 | then | 19 | then |
@@ -30,13 +23,11 @@ if [ ! -f "/config/FERDI_APP_KEY.txt" ]; | |||
30 | APP_KEY=$(grep APP_KEY .env | cut -d '=' -f2) | 23 | APP_KEY=$(grep APP_KEY .env | cut -d '=' -f2) |
31 | echo $APP_KEY > /config/FERDI_APP_KEY.txt | 24 | echo $APP_KEY > /config/FERDI_APP_KEY.txt |
32 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" | 25 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" |
33 | sed -i "s/APP_KEY=/APP_KEY=$APP_KEY/g" /config/config.txt | ||
34 | elif [ -f "/config/FERDI_APP_KEY.txt" ]; | 26 | elif [ -f "/config/FERDI_APP_KEY.txt" ]; |
35 | then | 27 | then |
36 | echo " " | 28 | echo " " |
37 | echo "**** App Key found ****" | 29 | echo "**** App Key found ****" |
38 | APP_KEY=$(cat /config/FERDI_APP_KEY.txt) | 30 | APP_KEY=$(cat /config/FERDI_APP_KEY.txt) |
39 | sed -i "s/APP_KEY=.*/APP_KEY=$APP_KEY/g" /config/config.txt | ||
40 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" | 31 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" |
41 | fi | 32 | fi |
42 | 33 | ||