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

Commit

Permalink
🚑Change format of sed command, add logging (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairpaul authored and timmo001 committed Sep 15, 2019
1 parent 44ff20c commit 36c89da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion home-panel/rootfs/etc/cont-init.d/secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ fi
key=$(cat /data/secret.txt)

# Set secret to persistent secret file
sed -i "s/API_AUTH_SECRET/${key}/g" /opt/panel/config/default.json
bashio::log.info "Update secret in config"
sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/config/default.json

# Set database to /data
bashio::log.info "Update database path in config"
sed -i "s#../db#/data#g" /opt/panel/config/default.json

0 comments on commit 36c89da

Please sign in to comment.