diff options
author | thursday <xthursdayx@mailbox.org> | 2021-08-23 18:09:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 18:09:33 +0000 |
commit | 8fa3f93c734ea9305e9bd5b3100816eb373b64a0 (patch) | |
tree | 9412a02e1d8b0a9d63b6b02bde2fe85c0c356323 /docker/entrypoint.sh | |
parent | Update Dockerfile (diff) | |
download | ferdium-server-8fa3f93c734ea9305e9bd5b3100816eb373b64a0.tar.gz ferdium-server-8fa3f93c734ea9305e9bd5b3100816eb373b64a0.tar.zst ferdium-server-8fa3f93c734ea9305e9bd5b3100816eb373b64a0.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/entrypoint.sh')
-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 ****" |