Customise UID/GID for Docker (#63)

This commit is contained in:
Thomas Miceli authored and GitHub committed 2023-06-18 12:50:36 +02:00
1 parent 98c85de3d6
commit da19e486f2
3 files changed
+37 -8

No files matched your search

+13
View 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"