🔨 cleanup log messages

This commit is contained in:
Timmo 2018-08-19 17:49:33 +01:00
parent 60eff318ca
commit 24c8abf123
2 changed files with 4 additions and 4 deletions

View file

@ -11,10 +11,10 @@ config_file="/config/$(hass.config.get 'config_file')"
if [ ! -f "$config_file" ]; then
hass.log.info "Config file does not exist. Creating.."
cp /etc/home-panel/home-panel-config.default.json "$config_file"
hass.log.info "You should now edit this file, then restart the addon."
hass.log.info "Created. You should now edit this file at '$config_file'"
fi
hass.log.info "Copy config.."
hass.log.info "Copy config to API.."
mkdir -p /usr/src/api/files
cp "$config_file" /usr/src/api/files/config.json

View file

@ -10,13 +10,13 @@ certfile="/ssl/$(hass.config.get 'certfile')"
keyfile="/ssl/$(hass.config.get 'keyfile')"
if hass.config.true 'ssl'; then
hass.log.info "Copy SSL certs to api directory"
hass.log.info "Copy SSL certs to API directory.."
cp "$certfile" /usr/src/api/fullchain.pem
cp "$keyfile" /usr/src/api/privkey.pem
fi
if hass.file_exists "/config/home-panel.db"; then
hass.log.info "Copy DB to api"
hass.log.info "Copy DB to api.."
mkdir -p /usr/src/api/files
cp /config/home-panel.db /usr/src/api/files/home-panel.db
fi