🚑Change format of sed command, add logging (#33)

This commit is contained in:
Paul Sinclair 2019-09-15 09:14:52 -04:00 committed by Timmo
parent 44ff20cc1a
commit 36c89daec8

View file

@ -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