From 42af2d86bf2b98b515d42e08f65fd3e44f7956ad Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 4 Jan 2016 11:01:45 +0000 Subject: [PATCH] Call config command for onion only setup --- src/freedombone | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/freedombone b/src/freedombone index de24b303..1e9b70ac 100755 --- a/src/freedombone +++ b/src/freedombone @@ -599,19 +599,28 @@ function interactive_configuration { rm -f /tmp/meshuserdevice fi - if [[ $MINIMAL_INSTALL == "no" ]]; then - ${PROJECT_NAME}-config \ - -f $CONFIGURATION_FILE \ - -w $FREEDOMBONE_WEBSITE \ - -b $FREEDOMBONE_BITMESSAGE \ - -m $MINIMUM_PASSWORD_LENGTH + if [[ $ONION_ONLY == "no" ]]; then + if [[ $MINIMAL_INSTALL == "no" ]]; then + ${PROJECT_NAME}-config \ + -f $CONFIGURATION_FILE \ + -w $FREEDOMBONE_WEBSITE \ + -b $FREEDOMBONE_BITMESSAGE \ + -m $MINIMUM_PASSWORD_LENGTH + else + ${PROJECT_NAME}-config \ + -f $CONFIGURATION_FILE \ + -w $FREEDOMBONE_WEBSITE \ + -b $FREEDOMBONE_BITMESSAGE \ + -m $MINIMUM_PASSWORD_LENGTH \ + --minimal "yes" + fi else ${PROJECT_NAME}-config \ -f $CONFIGURATION_FILE \ -w $FREEDOMBONE_WEBSITE \ -b $FREEDOMBONE_BITMESSAGE \ -m $MINIMUM_PASSWORD_LENGTH \ - --minimal "yes" + --onion "yes" fi if [ -f /tmp/meshuserdevice ]; then # mesh network user device installation