Files
Yamtrack/entrypoint.sh
2023-01-27 22:12:01 +01:00

15 lines
339 B
Bash

#!/bin/sh
set -e
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
usermod -o -u "$PUID" abc
chown -R abc:abc db
chown -R abc:abc assets
gosu abc:abc sh -c "python manage.py migrate --noinput &&
python manage.py collectstatic --noinput --ignore=*.scss &&
uwsgi --socket :8000 --master --enable-threads --module base.wsgi"