🚑Change format of sed command, add logging

This commit is contained in:
Paul Sinclair 2019-09-15 08:22:35 -04:00
parent 44ff20cc1a
commit bcceb64e41
No known key found for this signature in database
GPG key ID: 779C7A23E1AA845D

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