mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
fix(docker-build): start main process with exec (#1210)
* Use exec * Appl shellcheck fixes * Close with newline
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
if [ `id -u` -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
exec setpriv --reuid $PUID --regid $PGID --clear-groups node /usr/src/app/build/index.js
|
||||
#! /bin/sh
|
||||
if [ "$(id -u)" -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
||||
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups node /usr/src/app/build/index.js
|
||||
else
|
||||
node /usr/src/app/build/index.js
|
||||
fi
|
||||
exec node /usr/src/app/build/index.js
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user