Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
🔨 Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Sep 1, 2019
1 parent 79adbb3 commit 1209e84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions home-panel/rootfs/etc/cont-init.d/secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1209e84

Please sign in to comment.