diff options
author | 2021-08-23 18:14:35 +0000 | |
---|---|---|
committer | 2021-08-23 18:14:35 +0000 | |
commit | ed38c4d6f8812bf4cc4f98f166f50b7c46e3c59d (patch) | |
tree | bfa0881f4db730262791d3096ef2863a9b1eb3a5 /docker | |
parent | Merge pull request #1 from k0staa/master (diff) | |
download | ferdium-server-ed38c4d6f8812bf4cc4f98f166f50b7c46e3c59d.tar.gz ferdium-server-ed38c4d6f8812bf4cc4f98f166f50b7c46e3c59d.tar.zst ferdium-server-ed38c4d6f8812bf4cc4f98f166f50b7c46e3c59d.zip |
Update entrypoint.sh
Fixed error causing Ferdi-server's Adonis APP_KEY not to be read from FERDI_APP_KEY.txt on container restart, which was causing the following error:
```
RuntimeException: E_MISSING_APP_KEY: Make sure to define appKey inside config/app.js file before using Encryption provider
> More details: https://err.sh/adonisjs/errors/E_MISSING_APP_KEY
RuntimeException: E_MISSING_APP_KEY: Make sure to define appKey inside config/app.js file before using Encryption provider
> More details: https://err.sh/adonisjs/errors/E_MISSING_APP_KEY
at Function.missingAppKey (/app/node_modules/@adonisjs/generic-exceptions/src/RuntimeException.js:54:12)
at new Encryption (/app/node_modules/@adonisjs/framework/src/Encryption/index.js:33:33)
at Object.closure (/app/node_modules/@adonisjs/framework/providers/AppProvider.js:257:14)
at Ioc._resolveBinding (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:231:68)
at Ioc.make (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:807:19)
at /app/node_modules/@adonisjs/fold/src/Ioc/index.js:318:19
at Array.map (<anonymous>)
at Ioc._makeInstanceOf (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:317:44)
at Ioc.make (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:799:19)
at AuthManager.getScheme (/app/node_modules/@adonisjs/auth/src/Auth/Manager.js:86:16)
at Auth.authenticator (/app/node_modules/@adonisjs/auth/src/Auth/index.js:118:40)
at new Auth (/app/node_modules/@adonisjs/auth/src/Auth/index.js:68:39)
at Context.<anonymous> (/app/node_modules/@adonisjs/auth/providers/AuthProvider.js:151:14)
at Context.wrappedCallback [as auth] (/app/node_modules/macroable/index.js:132:61)
at Server._handleException (/app/node_modules/@adonisjs/framework/src/Server/index.js:253:63)
at /app/node_modules/@adonisjs/framework/src/Server/index.js:441:14
```
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 0679530..2d1fd89 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh | |||
@@ -18,7 +18,7 @@ EOL | |||
18 | if [[ -f "${DATA_DIR}/FERDI_APP_KEY.txt" ]]; then | 18 | if [[ -f "${DATA_DIR}/FERDI_APP_KEY.txt" ]]; then |
19 | echo " " | 19 | echo " " |
20 | echo "**** App Key found ****" | 20 | echo "**** App Key found ****" |
21 | APP_KEY=$(echo "${APP_KEY}") | 21 | APP_KEY=$(cat /data/FERDI_APP_KEY.txt) |
22 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" | 22 | echo "**** App Key set to $APP_KEY you can modify FERDI_APP_KEY.txt to update your key ****" |
23 | elif [[ -z "${APP_KEY}" ]]; then | 23 | elif [[ -z "${APP_KEY}" ]]; then |
24 | echo "**** Generating Ferdi-server app key for first run ****" | 24 | echo "**** Generating Ferdi-server app key for first run ****" |