mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-02 22:57:00 +00:00
19 lines
342 B
Bash
19 lines
342 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
python manage.py migrate --noinput
|
|
|
|
PUID=${PUID:-1000}
|
|
PGID=${PGID:-1000}
|
|
|
|
groupmod -o -g "$PGID" abc
|
|
usermod -o -u "$PUID" abc
|
|
|
|
chown abc:abc /yamtrack
|
|
chown -R abc:abc db
|
|
chown -R abc:abc staticfiles
|
|
chown -R abc:abc /var/log/nginx
|
|
chown -R abc:abc /var/lib/nginx
|
|
|
|
exec /usr/local/bin/supervisord -c /etc/supervisord.conf |