From 3857d6a71291e77cf6e20d4d6245735b96531470 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 9 Jul 2022 22:09:42 +0200 Subject: [PATCH] Update run.sh --- wger/rootfs/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wger/rootfs/run.sh b/wger/rootfs/run.sh index 9455e3e97..a7401de3f 100644 --- a/wger/rootfs/run.sh +++ b/wger/rootfs/run.sh @@ -1,16 +1,16 @@ #!/bin/bashio chmod +x /etc/cont-init.d/* -/./etc/cont-init.d/* +/./etc/cont-init.d/00-banner.sh LOCATION=/data -python3 manage.py migrate || true mkdir -p "$LOCATION" touch "$LOCATION"/database.sqlite || true 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 echo "Launch app" -su -c "/./home/wger/entrypoint.sh" -s /bin/bash wger +sudo -H -u wger bash -c 'exec /home/wger/entrypoint.sh'