mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
🔨 cleanup log messages
This commit is contained in:
parent
60eff318ca
commit
24c8abf123
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue