Use cp instead of mv

https://github.com/alexbelgium/hassio-addons/issues/2014
This commit is contained in:
Alexandre
2025-08-09 14:57:27 +02:00
committed by GitHub
parent 291ef2a4b5
commit ac1abbb885

View File

@@ -64,7 +64,7 @@ chmod -R 755 "/config"
# Remove /data/data
if [[ -d "$DATA_LOCATION"/data ]] && [[ "$(ls -A "$DATA_LOCATION"/data/*)" ]]; then
mv "$DATA_LOCATION"/data/* "$DATA_LOCATION"/
cp -rf "$DATA_LOCATION"/data/* "$DATA_LOCATION"/
rm -r "$DATA_LOCATION"/data
fi