diff --git a/charts/stable/unifi/values.yaml b/charts/stable/unifi/values.yaml index 3616b08b766..be4a7e89bdc 100644 --- a/charts/stable/unifi/values.yaml +++ b/charts/stable/unifi/values.yaml @@ -105,8 +105,6 @@ workload: dirs=$(ls -A "$newdatadir" | grep -v "data") if [ -n "$dirs" ]; then echo "New data dir is empty. Migrating data one level up" - mv $olddatadir/* $newdatadir || echo "Failed to move data" && exit 1 - # Remove the data/data dir - rm -rf $olddatadir + cp -rf $olddatadir/* $newdatadir || echo "Failed to move data" && exit 1 echo "Data migration complete" fi