mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-08 09:01:20 +02:00
Customise UID/GID for Docker (#63)
This commit is contained in:
13
docker/entrypoint.sh
Executable file
13
docker/entrypoint.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
export USER=opengist
|
||||
PID=${PID:-1000}
|
||||
GID=${GID:-1000}
|
||||
groupmod -o -g "$GID" $USER
|
||||
usermod -o -u "$PID" $USER
|
||||
|
||||
chown -R "$USER:$USER" /opengist
|
||||
|
||||
export OG_OPENGIST_HOME=/opengist
|
||||
|
||||
su -m $USER -c "/app/opengist/opengist"
|
Reference in New Issue
Block a user