mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-22 22:10:31 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
3539f328fb
commit
f5428e0950
@@ -8,12 +8,12 @@ config_location="$(bashio::config 'config_location')"
|
||||
config_location="${config_location/\/config/\/homeassistant}"
|
||||
|
||||
if [ -f "$config_location/config.yaml" ] && [ ! -f "$config_location/migrated" ]; then
|
||||
bashio::log.warning "Migrating config.yaml"
|
||||
cp -rf "/homeassistant/addons_config/$slug"/* /config/ || true
|
||||
echo "Migrated to internal config folder accessible at /addon_configs/xxx-$slug" >"/homeassistant/addons_config/$slug/migrated"
|
||||
bashio::log.warning "Migrating config.yaml"
|
||||
cp -rf "/homeassistant/addons_config/$slug"/* /config/ || true
|
||||
echo "Migrated to internal config folder accessible at /addon_configs/xxx-$slug" > "/homeassistant/addons_config/$slug/migrated"
|
||||
fi
|
||||
|
||||
if [ -f "/homeassistant/addons_autoscripts/$slug.sh" ]; then
|
||||
bashio::log.warning "Migrating autoscript"
|
||||
mv /homeassistant/addons_autoscripts/$slug.sh /config/ || true
|
||||
bashio::log.warning "Migrating autoscript"
|
||||
mv /homeassistant/addons_autoscripts/$slug.sh /config/ || true
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user