mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 17:21:56 +02:00
Update run.sh
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bashio
|
#!/bin/bashio
|
||||||
|
|
||||||
|
chmod +x /etc/cont-init.d/*
|
||||||
|
/./etc/cont-init.d/*
|
||||||
|
|
||||||
LOCATION=/data
|
LOCATION=/data
|
||||||
python3 manage.py migrate || true
|
python3 manage.py migrate || true
|
||||||
mkdir -p "$LOCATION"
|
mkdir -p "$LOCATION"
|
||||||
@@ -9,8 +12,5 @@ chmod -R 777 "$LOCATION" || true
|
|||||||
rm /home/wger/db/database.sqlite &>/dev/null || true
|
rm /home/wger/db/database.sqlite &>/dev/null || true
|
||||||
ln -s "$LOCATION"/database.sqlite /home/wger/db
|
ln -s "$LOCATION"/database.sqlite /home/wger/db
|
||||||
|
|
||||||
chmod +x /etc/cont-init.d/*
|
|
||||||
/./etc/cont-init.d/*
|
|
||||||
|
|
||||||
echo "Launch app"
|
echo "Launch app"
|
||||||
su -u wger bash -c /./home/wger/entrypoint.sh
|
su -u wger bash -c /./home/wger/entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user