mirror of
https://github.com/hassio-addons/addon-glances.git
synced 2025-05-04 11:01:25 +00:00
Get rid of empty dir in Home Assitant config
This commit is contained in:
parent
1a11daee15
commit
bf01cae649
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ if ! bashio::fs.file_exists '/config/glances.conf' \
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
mv /homeassistant/glances/* /config/ \
|
mv /homeassistant/glances/* /config/ \
|
||||||
|| bashio::exit.nok "Failed to migrate Glances configuration out of Home Assistant config directory"
|
|| bashio::exit.nok "Failed to migrate Glances configuration out of Home Assistant config directory"
|
||||||
|
rmdir /homeassistant/glances \
|
||||||
|
|| bashio::log.warning "Failed to remove Glances configuration directory from Home Assistant config directory"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure the configuration exists
|
# Ensure the configuration exists
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue