From 021c453ea6ca73e1ce0c726309ab637ee7251f09 Mon Sep 17 00:00:00 2001 From: Petr Date: Sun, 15 Mar 2026 00:05:42 +0100 Subject: [PATCH] Auto-create .sync_connection via printf command in bootstrap Replace 'Save this to .sync_connection' prose with actual printf command that Claude/user executes. Fix heredoc indentation in bootstrap.yaml. --- docs/setup/bootstrap.yaml | 6 +----- webapp/templates/dashboard.html | 7 ++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/setup/bootstrap.yaml b/docs/setup/bootstrap.yaml index 62cfb82..8824b7c 100644 --- a/docs/setup/bootstrap.yaml +++ b/docs/setup/bootstrap.yaml @@ -137,11 +137,7 @@ setup: mkdir -p ./user/duckdb ./user/notifications ./user/artifacts ./user/scripts ./user/parquet ./user/sessions # Save connection details for sync_data.sh to use when generating CLAUDE.md - cat > ./.sync_connection << 'CONN' - ssh_alias={ssh_alias} - server_host={server_host} - webapp_url={webapp_url} - CONN + printf "ssh_alias={ssh_alias}\nserver_host={server_host}\nwebapp_url={webapp_url}\n" > ./.sync_connection message: | Project structure created (server/, user/). diff --git a/webapp/templates/dashboard.html b/webapp/templates/dashboard.html index e16fe1b..8583180 100644 --- a/webapp/templates/dashboard.html +++ b/webapp/templates/dashboard.html @@ -2447,13 +2447,10 @@ + ' IdentityFile ' + sshKey + '\n' + ' StrictHostKeyChecking accept-new\n' + ' Then test: ssh ' + sshAlias + ' echo ok\n\n' - + '2. Create project folders and save connection details:\n' + + '2. Create project folders:\n' + ' mkdir -p server/docs server/scripts server/parquet server/metadata server/examples\n' + ' mkdir -p user/duckdb user/notifications user/artifacts user/scripts user/parquet user/sessions\n' - + ' Save this to .sync_connection (used by sync script to generate CLAUDE.md):\n' - + ' ssh_alias=' + sshAlias + '\n' - + ' server_host=' + serverHost + '\n' - + ' webapp_url=' + webappUrl + '\n\n' + + ' printf "ssh_alias=' + sshAlias + '\\nserver_host=' + serverHost + '\\nwebapp_url=' + webappUrl + '\\n" > .sync_connection\n\n' + '3. Download from server via rsync (use --no-perms --no-group to avoid macOS permission errors).\n' + ' Skip directories that don\'t exist on the server (rsync exit code 23 = missing source).\n' + ' rsync -avz --no-perms --no-group ' + sshAlias + ':server/scripts/ ./server/scripts/\n'