mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
8ebac41318
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
24 lines
478 B
Bash
Executable File
24 lines
478 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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
|
|
|
|
exec node dist/main $1
|