👕 Fix shellcheck

This commit is contained in:
Timmo 2019-09-08 19:14:48 +01:00
parent 1aef54deda
commit 7e0bd6aea0

View file

@ -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 [ "$(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