mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Update run.sh
This commit is contained in:
@@ -10,13 +10,11 @@ mkdir -p "$LOCATION"
|
|||||||
touch "$LOCATION"/database.sqlite
|
touch "$LOCATION"/database.sqlite
|
||||||
chown -R wger "$LOCATION"
|
chown -R wger "$LOCATION"
|
||||||
chmod -R 777 "$LOCATION"
|
chmod -R 777 "$LOCATION"
|
||||||
rm /home/wger/db/database.sqlite || true
|
|
||||||
ln -s "$LOCATION"/database.sqlite /home/wger/db
|
ln -s "$LOCATION"/database.sqlite /home/wger/db
|
||||||
|
|
||||||
python3 manage.py migrate || true
|
|
||||||
|
|
||||||
echo "Launch app"
|
echo "Launch app"
|
||||||
su -m wger -c "\
|
su -m wger -c "\
|
||||||
|
python3 manage.py migrate || true && \
|
||||||
DOCKER_DIR=./extras/docker/development && \
|
DOCKER_DIR=./extras/docker/development && \
|
||||||
pip3 install -e . && \
|
pip3 install -e . && \
|
||||||
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
|
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
|
||||||
|
|||||||
Reference in New Issue
Block a user