From 1aef54deda47a2e6ddaf8ac452fcbae35cd44b0e Mon Sep 17 00:00:00 2001 From: Timmo Date: Sun, 8 Sep 2019 19:02:51 +0100 Subject: [PATCH] :shirt: Shellcheck fix --- home-panel/rootfs/etc/cont-init.d/secrets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index 8cb39f6..82be728 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -3,7 +3,7 @@ # Community Hass.io Add-ons: Home Panel # This updates the internal auth secret for the API # ============================================================================== -if [ $(cat /opt/panel/config/default.json | grep -c "API_AUTH_SECRET") = 0 ]; then +if [ "$(cat /opt/panel/config/default.json | grep -c 'API_AUTH_SECRET')" = 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