mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:27:01 +00:00
15 lines
238 B
Bash
15 lines
238 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
python manage.py migrate --noinput
|
|
|
|
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 media
|
|
|
|
exec gosu abc:abc uwsgi --ini /app/base/uwsgi.ini |