Update run.sh

This commit is contained in:
Alexandre
2022-07-09 22:29:36 +02:00
committed by GitHub
parent f1544653f7
commit 17c823d97a

View File

@@ -11,7 +11,8 @@ chown -R wger "$LOCATION" || true
chmod -R 777 "$LOCATION" || true
rm /home/wger/db/database.sqlite &>/dev/null || true
ln -s "$LOCATION"/database.sqlite /home/wger/db
python3 manage.py migrate || true
python3 /home/wger/src/manage.py migrate || true
echo "Launch app"
su -l wger -s /bin/bash -c "exec /home/wger/entrypoint.sh"