From 06374901339ae9381f43def24234b8fa525ac64e Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 8 Nov 2026 17:46:30 +0300 Subject: [PATCH] docs(readme): moving to a new machine copies an empty ssh backup too The installer block copied the backup's SSH keys with cp "$b"/ssh/*: a backup of a panel without keys has an empty ssh/ directory, the glob stays unexpanded, cp fails and the rest of the && chain is skipped. It copies the directory's contents as the pki line does. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 15cf9175..fb003bd8 100644 --- a/README.md +++ b/README.md @@ -768,7 +768,7 @@ systemctl stop webvirt-cloud webvirt-novncd webvirt-socketiod webvirt-worker cd /srv/webvirtcloud && venv/bin/python3 -c "import os,sqlite3,sys; [os.remove(p) for p in ('db.sqlite3-journal','db.sqlite3-wal','db.sqlite3-shm') if os.path.exists(p)]; sqlite3.connect(sys.argv[1]).backup(sqlite3.connect('db.sqlite3'))" "$b/db.sqlite3" && cp "$b/node_id" data/ && { [ ! -f "$b/secret_key" ] || cp "$b/secret_key" data/; } && -mkdir -p ~www-data/.ssh && { [ ! -d "$b/ssh" ] || cp "$b"/ssh/* ~www-data/.ssh/; } && +mkdir -p ~www-data/.ssh && { [ ! -d "$b/ssh" ] || cp -r "$b"/ssh/. ~www-data/.ssh/; } && mkdir -p ~www-data/.pki && { [ ! -d "$b/pki" ] || cp -r "$b"/pki/. ~www-data/.pki/; } && venv/bin/python3 manage.py migrate && chown -R www-data:www-data data ~www-data/.ssh ~www-data/.pki &&