Merge pull request #335 from outis1one/claude/ionos-script-integration-x32ofw
Fix DR-spare path reset on reinstall and tilde-quoting in remote comm…
This commit is contained in:
+6
-2
@@ -563,9 +563,13 @@ install_backup() {
|
||||
echo " up first if you haven't (ssh-keygen, then ssh-copy-id to the spare)."
|
||||
echo ""
|
||||
local DR_SYNC_HOST="" DR_SYNC_PATH=""
|
||||
prompt_text " Spare box SSH destination, user@host (blank to skip):" "" DR_SYNC_HOST
|
||||
if [ -f "$CONF_FILE" ]; then
|
||||
DR_SYNC_HOST="$(grep '^DR_SYNC_HOST=' "$CONF_FILE" 2>/dev/null | sed -E "s/^DR_SYNC_HOST='(.*)'\$/\1/")"
|
||||
DR_SYNC_PATH="$(grep '^DR_SYNC_PATH=' "$CONF_FILE" 2>/dev/null | sed -E "s/^DR_SYNC_PATH='(.*)'\$/\1/")"
|
||||
fi
|
||||
prompt_text " Spare box SSH destination, user@host (blank to skip):" "$DR_SYNC_HOST" DR_SYNC_HOST
|
||||
if [ -n "$DR_SYNC_HOST" ]; then
|
||||
prompt_text " Path for backup.conf/README on the spare:" "~/docker/backup" DR_SYNC_PATH
|
||||
prompt_text " Path for backup.conf/README on the spare:" "${DR_SYNC_PATH:-~/docker/backup}" DR_SYNC_PATH
|
||||
DR_SYNC_PATH="${DR_SYNC_PATH:-~/docker/backup}"
|
||||
|
||||
# Catch a missing/unauthorized key now, not at 2am during the first
|
||||
|
||||
Reference in New Issue
Block a user