opengist/docker/entrypoint.sh

14 lines
231 B
Bash
Raw Normal View History

2023-06-18 10:50:36 +00:00
#!/bin/sh
export USER=opengist
2023-06-21 15:52:18 +00:00
UID=${UID:-1000}
2023-06-18 10:50:36 +00:00
GID=${GID:-1000}
groupmod -o -g "$GID" $USER
2023-06-21 15:52:18 +00:00
usermod -o -u "$UID" $USER
2023-06-18 10:50:36 +00:00
chown -R "$USER:$USER" /opengist
export OG_OPENGIST_HOME=/opengist
su -m $USER -c "/app/opengist/opengist"