diff --git a/aircast/rootfs/etc/s6-overlay/s6-rc.d/init-aircast/run b/aircast/rootfs/etc/s6-overlay/s6-rc.d/init-aircast/run index 78f8522..c56af64 100755 --- a/aircast/rootfs/etc/s6-overlay/s6-rc.d/init-aircast/run +++ b/aircast/rootfs/etc/s6-overlay/s6-rc.d/init-aircast/run @@ -8,7 +8,7 @@ declare latency # Migrate add-on data from the Home Assistant config folder, # to the add-on configuration folder. -if ! bashio::fs.directory_exists '/config/aircast.xml' \ +if ! bashio::fs.file_exists '/config/aircast.xml' \ && bashio::fs.file_exists '/homeassistant/aircast.xml'; then mv /homeassistant/aircast.xml /config/aircast.xml \ || bashio::exit.nok "Failed to migrate Aircast configuration"