opengist/docker/entrypoint.sh

13 lines
281 B
Bash
Raw Permalink 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
2023-10-15 06:14:34 +00:00
chown -R "$USER:$USER" /config.yml
2023-06-18 10:50:36 +00:00
2023-10-15 06:14:34 +00:00
exec su $USER -c "OG_OPENGIST_HOME=/opengist /app/opengist/opengist --config /config.yml"