mirror of
https://github.com/immich-app/immich.git
synced 2024-12-14 12:00:55 +02:00
7097cf6319
* fix admin cli * move script to bin, actually pass arguments * remove accidentally created package-lock.json
36 lines
753 B
Bash
Executable File
36 lines
753 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
export LD_PRELOAD=/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2
|
|
|
|
if [ "$DB_URL_FILE" ]; then
|
|
export DB_URL=$(cat $DB_URL_FILE)
|
|
unset DB_URL_FILE
|
|
fi
|
|
|
|
if [ "$DB_HOSTNAME_FILE" ]; then
|
|
export DB_HOSTNAME=$(cat $DB_HOSTNAME_FILE)
|
|
unset DB_HOSTNAME_FILE
|
|
fi
|
|
|
|
if [ "$DB_DATABASE_NAME_FILE" ]; then
|
|
export DB_DATABASE_NAME=$(cat $DB_DATABASE_NAME_FILE)
|
|
unset DB_DATABASE_NAME_FILE
|
|
fi
|
|
|
|
if [ "$DB_USERNAME_FILE" ]; then
|
|
export DB_USERNAME=$(cat $DB_USERNAME_FILE)
|
|
unset DB_USERNAME_FILE
|
|
fi
|
|
|
|
if [ "$DB_PASSWORD_FILE" ]; then
|
|
export DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
|
|
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 $@
|