hacktoberfestdockerselfhostedself-hostedresponsivemonitoringwebsocketwebappuptime-monitoringuptimesocket-iosingle-page-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
327 B
15 lines
327 B
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
PUID=${PUID=1000}
|
|
PGID=${PGID=1000}
|
|
|
|
files_ownership () {
|
|
chown -hRc "$PUID":"$PGID" /app/data
|
|
}
|
|
|
|
echo "==> Performing startup jobs and maintenance tasks"
|
|
files_ownership
|
|
|
|
echo "==> Starting application with user $PUID group $PGID"
|
|
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups "$@"
|
|
|