Skip to content
Snippets Groups Projects
Commit aabc2bbe authored by intrigeri's avatar intrigeri
Browse files

r3564@krups: intrigeri | 2005-11-16 20:33:48 +0100

 dup.helper: disabled connection setup, waiting for rdiff.helper code to be shared in some lib.
parent 089f74ad
No related branches found
No related tags found
No related merge requests found
...@@ -159,9 +159,12 @@ do_dup_gpg() { ...@@ -159,9 +159,12 @@ do_dup_gpg() {
set +o noglob set +o noglob
_gpg_done="(DONE)" _gpg_done="(DONE)"
setDefault conn setDefault adv
# TODO: replace the above line by the following when do_dup_conn is written
# setDefault conn
} }
# TODO: share rdiff.helper code in some lib, and use it here
do_dup_conn() { do_dup_conn() {
_con_done="(DONE)" _con_done="(DONE)"
setDefault adv setDefault adv
...@@ -354,11 +357,12 @@ dup_main_menu() { ...@@ -354,11 +357,12 @@ dup_main_menu() {
gpgitem="configure GnuPG encryption/signing $_gpg_done" gpgitem="configure GnuPG encryption/signing $_gpg_done"
conitem="set up ssh keys and test remote connection $_con_done" conitem="set up ssh keys and test remote connection $_con_done"
advitem="edit advanced settings $_adv_done" advitem="edit advanced settings $_adv_done"
# TODO: add the following to the menu when do_dup_conn is written
# conn "$conitem" \
menuBox "$dup_title" "choose a step:" \ menuBox "$dup_title" "choose a step:" \
src "$srcitem" \ src "$srcitem" \
dest "$destitem" \ dest "$destitem" \
gpg "$gpgitem" \ gpg "$gpgitem" \
conn "$conitem" \
adv "$advitem" \ adv "$advitem" \
finish "finish and create config file" finish "finish and create config file"
[ $? = 0 ] || return 1 [ $? = 0 ] || return 1
...@@ -368,10 +372,13 @@ dup_main_menu() { ...@@ -368,10 +372,13 @@ dup_main_menu() {
"src") do_dup_src;; "src") do_dup_src;;
"dest") do_dup_dest;; "dest") do_dup_dest;;
"gpg") do_dup_gpg;; "gpg") do_dup_gpg;;
"conn") do_dup_conn;; # TODO: enable the following when do_dup_conn is written
# "conn") do_dup_conn;;
"adv") do_dup_adv;; "adv") do_dup_adv;;
"finish") "finish")
if [[ "$_con_done$_dest_done$_gpg_done$_src_done" != "(DONE)(DONE)(DONE)(DONE)" ]]; then if [[ "$_dest_done$_gpg_done$_src_done" != "(DONE)(DONE)(DONE)" ]]; then
# TODO: replace the previous test by the following when do_dup_conn is written
# if [[ "$_con_done$_dest_done$_gpg_done$_src_done" != "(DONE)(DONE)(DONE)(DONE)" ]]; then
msgBox "$dup_title" "You cannot create the configuration file until the four first steps are completed." msgBox "$dup_title" "You cannot create the configuration file until the four first steps are completed."
else else
do_dup_finish do_dup_finish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment