Update run.sh

This commit is contained in:
Alexandre
2022-07-09 21:59:45 +02:00
committed by GitHub
parent bc1cc3ac9d
commit fa7c837e0a

View File

@@ -1,5 +1,8 @@
#!/bin/bashio
chmod +x /etc/cont-init.d/*
/./etc/cont-init.d/*
LOCATION=/data
python3 manage.py migrate || true
mkdir -p "$LOCATION"
@@ -9,8 +12,5 @@ chmod -R 777 "$LOCATION" || true
rm /home/wger/db/database.sqlite &>/dev/null || true
ln -s "$LOCATION"/database.sqlite /home/wger/db
chmod +x /etc/cont-init.d/*
/./etc/cont-init.d/*
echo "Launch app"
su -u wger bash -c /./home/wger/entrypoint.sh