From 1209e84e5a7f39bf632bcdcdfe82a137128c94b0 Mon Sep 17 00:00:00 2001 From: Timmo Date: Sun, 1 Sep 2019 01:07:51 +0100 Subject: [PATCH] :hammer: Fix config --- home-panel/rootfs/etc/cont-init.d/secrets.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index 37c13d2..0602b9f 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -3,5 +3,4 @@ # Community Hass.io Add-ons: Home Panel # This updates the internal auth secret for the API # ============================================================================== -# shellcheck disable=2094,2016 -bashio::jq /opt/panel/config/default.json '.authentication.secret="$(openssl rand -base64 32)"' > /opt/panel/config/default.json +sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json