0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-01 07:20:46 +01:00
uptime-kuma/extra/entrypoint.sh

16 lines
327 B
Bash
Raw Normal View History

#!/usr/bin/env sh
set -e
2021-09-18 11:33:25 +02:00
PUID=${PUID=1000}
PGID=${PGID=1000}
files_ownership () {
2021-09-18 11:33:25 +02:00
chown -hRc "$PUID":"$PGID" /app/data
}
echo "==> Performing startup jobs and maintenance tasks"
files_ownership
2021-09-18 11:33:25 +02:00
echo "==> Starting application with user $PUID group $PGID"
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups "$@"