aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorLibravatar thursday <xthursdayx@mailbox.org>2021-07-13 04:38:34 -0400
committerLibravatar GitHub <noreply@github.com>2021-07-13 04:38:34 -0400
commit6feb0cde33dcf378ae40aa90910691b77015d27b (patch)
tree46e270c0717aed52486a42aa184ca457d21c48d1 /docker
parentUpdate .dockerignore (diff)
downloadferdium-server-6feb0cde33dcf378ae40aa90910691b77015d27b.tar.gz
ferdium-server-6feb0cde33dcf378ae40aa90910691b77015d27b.tar.zst
ferdium-server-6feb0cde33dcf378ae40aa90910691b77015d27b.zip
Update entrypoint.sh
Removing remaining references to cofig.txt
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/entrypoint.sh9
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:
14https://opencollective.com/getferdi/ 14https://opencollective.com/getferdi/
15EOL 15EOL
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
25if [ ! -f "/config/FERDI_APP_KEY.txt" ]; 18if [ ! -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
34elif [ -f "/config/FERDI_APP_KEY.txt" ]; 26elif [ -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 ****"
41fi 32fi
42 33