From 451df93cfe74d10a574bcc70dda5aa5c3756f048 Mon Sep 17 00:00:00 2001 From: dkoao Date: Fri, 27 Sep 2019 17:19:24 +0000 Subject: [PATCH] Make sure that DISABLE_NEXTCLOUD is set to 0 --- setup/questions.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup/questions.sh b/setup/questions.sh index 69972859..77354290 100644 --- a/setup/questions.sh +++ b/setup/questions.sh @@ -202,14 +202,17 @@ if [ ! -d $STORAGE_ROOT/owncloud ]; then \nIt also offers other features like file sharing, gallery, todos, and more.\ \n\nWould you like to disable it?"\ DISABLE_NEXTCLOUD -fi -if [ -d $STORAGE_ROOT/owncloud ]; then +else + # Ask the user if he wants to remove Nextcloud yesno_box "Remove Nextcloud?"\ "It seems that you already have Nextcloud installed previous\ \n\nNextcloud offers the Contacts and Calendar features in Mail-in-a-box\ \nIt also offers other features like file sharing, gallery, todos, and more.\ \n\nWould you like to remove it?"\ REMOVE_NEXTCLOUD + if [ "${REMOVE_NEXTCLOUD}" == "0" ]; then + DISABLE_NEXTCLOUD="0" + fi fi # Show the configuration, since the user may have not entered it manually. echo