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:
@@ -1258,8 +1258,8 @@ _hb_pbs_manual_keyfile_import() {
|
|||||||
local target_keyfile="$1"
|
local target_keyfile="$1"
|
||||||
local src
|
local src
|
||||||
src=$(dialog --backtitle "ProxMenux" --title "$(hb_translate "Import encryption keyfile")" \
|
src=$(dialog --backtitle "ProxMenux" --title "$(hb_translate "Import encryption keyfile")" \
|
||||||
--inputbox "$(hb_translate "No PBS keyfile is installed on this host and no automatic recovery was possible.")"$'\n\n'"$(hb_translate "Absolute path to your PBS keyfile:")"$'\n\n'"$(hb_translate "The file is copied to")"$'\n'"$target_keyfile" \
|
--inputbox "$(hb_translate "No PBS keyfile is installed on this host and no automatic recovery was possible.")"$'\n\n'"$(hb_translate "Copy your PBS keyfile onto this host first (via scp, USB, sftp, etc.) — for example to")"$'\n'" /tmp/pbs-key.conf"$'\n\n'"$(hb_translate "Then enter the absolute path where you placed it below. The file will be copied to")"$'\n'" $target_keyfile"$'\n\n'"$(hb_translate "Leave blank and press OK — or press Cancel — to abort.")" \
|
||||||
16 78 "" 3>&1 1>&2 2>&3) || return 1
|
20 78 "" 3>&1 1>&2 2>&3) || return 1
|
||||||
src="$(echo "$src" | xargs)"
|
src="$(echo "$src" | xargs)"
|
||||||
[[ -z "$src" ]] && return 1
|
[[ -z "$src" ]] && return 1
|
||||||
if [[ ! -s "$src" || ! -r "$src" ]]; then
|
if [[ ! -s "$src" || ! -r "$src" ]]; then
|
||||||
@@ -1515,8 +1515,8 @@ _hb_pbs_import_dialog() {
|
|||||||
|
|
||||||
# 1. Ask the path.
|
# 1. Ask the path.
|
||||||
src=$(dialog --backtitle "ProxMenux" --title "$(hb_translate "Import PBS keyfile")" \
|
src=$(dialog --backtitle "ProxMenux" --title "$(hb_translate "Import PBS keyfile")" \
|
||||||
--inputbox "$(hb_translate "Absolute path to your existing PBS keyfile:")"$'\n\n'"$(hb_translate "The file is copied to")"$'\n'"$key_file $(hb_translate "with chmod 600. ProxMenux does not validate the contents — any keyfile you accept as valid on your PBS is accepted here.")" \
|
--inputbox "$(hb_translate "Copy your existing PBS keyfile onto this host first (via scp, USB, sftp, etc.) — for example to")"$'\n'" /tmp/pbs-key.conf"$'\n\n'"$(hb_translate "Then enter the absolute path where you placed it. The file will be copied to")"$'\n'" $key_file"$'\n\n'"$(hb_translate "Leave blank and press OK — or press Cancel — to abort. ProxMenux does not validate the contents; any keyfile your PBS accepts is accepted here.")" \
|
||||||
14 78 "" 3>&1 1>&2 2>&3) || return 1
|
20 78 "" 3>&1 1>&2 2>&3) || return 1
|
||||||
src="$(echo "$src" | xargs)"
|
src="$(echo "$src" | xargs)"
|
||||||
[[ -z "$src" ]] && return 1
|
[[ -z "$src" ]] && return 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user