From d4c10db58e2bdb03a9a050fc3ab1979473a0fabd Mon Sep 17 00:00:00 2001 From: mawkone Date: Tue, 9 Jun 2026 16:28:51 -0700 Subject: [PATCH] chore(telemetry): use safer rsync for container path migration hook --- vibn-frontend/lib/dev-container.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vibn-frontend/lib/dev-container.ts b/vibn-frontend/lib/dev-container.ts index 061f5415..304d9968 100644 --- a/vibn-frontend/lib/dev-container.ts +++ b/vibn-frontend/lib/dev-container.ts @@ -443,9 +443,9 @@ export async function execInDevContainer( const slug = projectRow.slug; const migrationCmd = `if [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` + - `mv /workspace/${slug}/* /workspace/ 2>/dev/null; ` + - `mv /workspace/${slug}/.* /workspace/ 2>/dev/null; ` + - `rmdir /workspace/${slug} 2>/dev/null; ` + + `rsync -a "/workspace/${slug}/" "/workspace/" 2>/dev/null; ` + + `mv "/workspace/${slug}" "/workspace/.legacy-nested-${slug}-$(date +%s)" 2>/dev/null; ` + + `echo "Migrated nested repo from /workspace/${slug}" > /workspace/.vibn-migration-root-fix; ` + `fi`; await execInCoolifyApp({ appUuid: row.service_uuid,