aboutsummaryrefslogtreecommitdiffstats
path: root/docker/entrypoint.sh
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-24 12:23:44 -0500
committerLibravatar GitHub <noreply@github.com>2022-04-24 12:23:44 -0500
commit442ef142fc4bd7c430d8a1314535f03576f616f6 (patch)
tree10d8df84e8c5ba68b7dd0bf6bc1e0add6a766b63 /docker/entrypoint.sh
parentfix: branding on README.md (diff)
downloadferdium-server-442ef142fc4bd7c430d8a1314535f03576f616f6.tar.gz
ferdium-server-442ef142fc4bd7c430d8a1314535f03576f616f6.tar.zst
ferdium-server-442ef142fc4bd7c430d8a1314535f03576f616f6.zip
Rebranded from 'ferdi' to 'ferdium' (#4)
Diffstat (limited to 'docker/entrypoint.sh')
-rwxr-xr-xdocker/entrypoint.sh26
1 files changed, 14 insertions, 12 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 2e58abc..44f480f 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -2,19 +2,21 @@
2 2
3cat << EOL 3cat << EOL
4------------------------------------- 4-------------------------------------
5 ____ ___ 5 ______ ___
6 / __/__ _______/ (_) 6 / ____/__ _________/ (_)_ ______ ___
7 / _// -_) __/ _ / / 7 / /_ / _ \/ ___/ __ / / / / / __ `__ \
8 _/_/ \__/_/ \_,_/_/ 8 / __/ / __/ / / /_/ / / /_/ / / / / / /
9 / __/__ _____ _____ ____ 9 /_/ \___/_/ \__,_/_/\__,_/_/ /_/ /_/
10 _\ \/ -_) __/ |/ / -_) __/ 10
11 /___/\__/_/ |___/\__/_/ 11 _____
12Brought to you by getferdi.com 12 / ___/___ ______ _____ _____
13Support our Open Collective at: 13 \__ \/ _ \/ ___/ | / / _ \/ ___/
14https://opencollective.com/getferdi/ 14 ___/ / __/ / | |/ / __/ /
15 /____/\___/_/ |___/\___/_/
16Brought to you by ferdium.org
15EOL 17EOL
16 18
17key_file="${DATA_DIR}/FERDI_APP_KEY.txt" 19key_file="${DATA_DIR}/FERDIUM_APP_KEY.txt"
18 20
19print_app_key_message() { 21print_app_key_message() {
20 app_key=$1 22 app_key=$1
@@ -25,7 +27,7 @@ print_app_key_message() {
25# Create APP key if needed 27# Create APP key if needed
26if [ -z ${APP_KEY} ] && [ ! -f ${key_file} ] 28if [ -z ${APP_KEY} ] && [ ! -f ${key_file} ]
27then 29then
28 echo '**** Generating Ferdi-server app key for first run ****' 30 echo '**** Generating Ferdium-server app key for first run ****'
29 adonis key:generate 31 adonis key:generate
30 APP_KEY=$(grep APP_KEY .env | cut -d '=' -f2) 32 APP_KEY=$(grep APP_KEY .env | cut -d '=' -f2)
31 echo ${APP_KEY} > ${key_file} 33 echo ${APP_KEY} > ${key_file}