mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-07-27 10:58:23 +00:00
Update lib_host_backup_common.sh
This commit is contained in:
@@ -1157,12 +1157,12 @@ hb_ask_pbs_encryption() {
|
|||||||
# unset the --keyfile flag, and return 1 so the caller can
|
# unset the --keyfile flag, and return 1 so the caller can
|
||||||
# bail out and drop the operator back at the previous menu.
|
# bail out and drop the operator back at the previous menu.
|
||||||
if ! hb_pbs_setup_recovery; then
|
if ! hb_pbs_setup_recovery; then
|
||||||
# Cancel = leave no residue. Wipe both the freshly-created
|
# Cancel between dialogs: wipe residue silently and hand
|
||||||
# keyfile and any partial recovery blob so the state-dir
|
# control back. No terminal output — the outer menu will
|
||||||
# is clean for the next try.
|
# re-render and printing anything here would break the
|
||||||
|
# dialog-to-dialog transition.
|
||||||
rm -f "$key_file" "$recovery_enc" 2>/dev/null
|
rm -f "$key_file" "$recovery_enc" 2>/dev/null
|
||||||
HB_PBS_KEYFILE_OPT=""
|
HB_PBS_KEYFILE_OPT=""
|
||||||
msg_warn "$(hb_translate "Encryption cancelled — a recovery passphrase is required to encrypt. Returning to the previous menu.")"
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user