mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Use cp instead of mv
https://github.com/alexbelgium/hassio-addons/issues/2014
This commit is contained in:
@@ -64,7 +64,7 @@ chmod -R 755 "/config"
|
|||||||
|
|
||||||
# Remove /data/data
|
# Remove /data/data
|
||||||
if [[ -d "$DATA_LOCATION"/data ]] && [[ "$(ls -A "$DATA_LOCATION"/data/*)" ]]; then
|
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
|
rm -r "$DATA_LOCATION"/data
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user