mirror of
https://github.com/thomiceli/opengist
synced 2025-02-21 17:19:34 +01:00
12 lines
225 B
Bash
Executable File
12 lines
225 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export USER=opengist
|
|
UID=${UID:-1000}
|
|
GID=${GID:-1000}
|
|
groupmod -o -g "$GID" $USER
|
|
usermod -o -u "$UID" $USER
|
|
|
|
chown -R "$USER:$USER" /opengist
|
|
|
|
exec su $USER -c "OG_OPENGIST_HOME=/opengist /app/opengist/opengist"
|