mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-07-26 18:38:30 +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
|
||||
# bail out and drop the operator back at the previous menu.
|
||||
if ! hb_pbs_setup_recovery; then
|
||||
# Cancel = leave no residue. Wipe both the freshly-created
|
||||
# keyfile and any partial recovery blob so the state-dir
|
||||
# is clean for the next try.
|
||||
# Cancel between dialogs: wipe residue silently and hand
|
||||
# control back. No terminal output — the outer menu will
|
||||
# re-render and printing anything here would break the
|
||||
# dialog-to-dialog transition.
|
||||
rm -f "$key_file" "$recovery_enc" 2>/dev/null
|
||||
HB_PBS_KEYFILE_OPT=""
|
||||
msg_warn "$(hb_translate "Encryption cancelled — a recovery passphrase is required to encrypt. Returning to the previous menu.")"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user