mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 01:48:16 +01:00
Update run.sh
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bashio
|
||||
|
||||
LOCATION=/data
|
||||
python3 manage.py migrate || true
|
||||
@@ -9,5 +9,8 @@ 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 -H -u wger bash -c /./home/wger/entrypoint.sh
|
||||
su -u wger bash -c /./home/wger/entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user