An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Use absolute paths in rm commands for safety
Andras Bacsai4507d9946098
diff --git a/scripts/conductor-setup.sh b/scripts/conductor-setup.shindex a1172e0d07..b7e8ccb36b 100755--- a/scripts/conductor-setup.sh+++ b/scripts/conductor-setup.sh@@ -11,12 +11,14 @@ echo "Setting up shared node_modules and vendor directories..."mkdir -p "$CONDUCTOR_ROOT_PATH/node_modules"mkdir -p "$CONDUCTOR_ROOT_PATH/vendor"+# Get current worktree path+WORKTREE_PATH=$(pwd)+# Remove existing directories if they exist and are not symlinks-[ -d "node_modules" ] && [ ! -L "node_modules" ] && rm -rf node_modules-[ -d "vendor" ] && [ ! -L "vendor" ] && rm -rf vendor+[ -d "node_modules" ] && [ ! -L "node_modules" ] && rm -rf "$WORKTREE_PATH/node_modules"+[ -d "vendor" ] && [ ! -L "vendor" ] && rm -rf "$WORKTREE_PATH/vendor"# Calculate relative path from worktree to main repo-WORKTREE_PATH=$(pwd)RELATIVE_PATH=$(python3 -c "import os.path; print(os.path.relpath('$CONDUCTOR_ROOT_PATH', '$WORKTREE_PATH'))")# Create symlinks to main repo's node_modules and vendor