1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

Update start.sh (#3282)

Adding ability to use docker secrets file for REDIS_PASSWORD
This commit is contained in:
abhi-chakrab 2023-07-15 09:30:52 -06:00 committed by GitHub
parent ab85dd9fa8
commit ed594c1987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,4 +20,9 @@ if [ "$DB_PASSWORD_FILE" ]; then
unset DB_PASSWORD_FILE
fi
if [ "$REDIS_PASSWORD_FILE" ]; then
export REDIS_PASSWORD=$(cat $REDIS_PASSWORD_FILE)
unset REDIS_PASSWORD_FILE
fi
exec node dist/main $1