mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
👕 Shellcheck fix
This commit is contained in:
parent
9ad7d184db
commit
1aef54deda
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Community Hass.io Add-ons: Home Panel
|
# Community Hass.io Add-ons: Home Panel
|
||||||
# This updates the internal auth secret for the API
|
# 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.."
|
bashio::log.info "Update auth secret.."
|
||||||
sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json
|
sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue