From 69944adf857aaae9dd856d523a6595fc40d4371b Mon Sep 17 00:00:00 2001 From: Timmo Date: Sat, 14 Sep 2019 22:10:40 +0100 Subject: [PATCH] :ambulance: Fix database path --- home-panel/rootfs/etc/cont-init.d/secrets.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index 2803b09..3264f39 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -7,3 +7,8 @@ if [ "$(grep -i 'API_AUTH_SECRET' /opt/panel/config/default.json)" = 0 ]; then bashio::log.info "Update auth secret.." sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json fi + +if [ "$(grep -i '../db' /opt/panel/config/default.json)" = 0 ]; then + # Force database to use /data + sed -i -e "s/../db//data/g" /opt/panel/config/default.json +fi