chore(telemetry): use safer rsync for container path migration hook
This commit is contained in:
@@ -443,9 +443,9 @@ export async function execInDevContainer(
|
|||||||
const slug = projectRow.slug;
|
const slug = projectRow.slug;
|
||||||
const migrationCmd =
|
const migrationCmd =
|
||||||
`if [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` +
|
`if [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` +
|
||||||
`mv /workspace/${slug}/* /workspace/ 2>/dev/null; ` +
|
`rsync -a "/workspace/${slug}/" "/workspace/" 2>/dev/null; ` +
|
||||||
`mv /workspace/${slug}/.* /workspace/ 2>/dev/null; ` +
|
`mv "/workspace/${slug}" "/workspace/.legacy-nested-${slug}-$(date +%s)" 2>/dev/null; ` +
|
||||||
`rmdir /workspace/${slug} 2>/dev/null; ` +
|
`echo "Migrated nested repo from /workspace/${slug}" > /workspace/.vibn-migration-root-fix; ` +
|
||||||
`fi`;
|
`fi`;
|
||||||
await execInCoolifyApp({
|
await execInCoolifyApp({
|
||||||
appUuid: row.service_uuid,
|
appUuid: row.service_uuid,
|
||||||
|
|||||||
Reference in New Issue
Block a user