diff --git a/install/usr/local/bin/restore b/install/usr/local/bin/restore index 96a6cc2..7a31994 100755 --- a/install/usr/local/bin/restore +++ b/install/usr/local/bin/restore @@ -1132,9 +1132,6 @@ EOF echo -e "${coff}" read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}Y${cdgy}\) \| \(${cwh}N${cdgy}\) \| \(${cwh}Q${cdgy}\) : ${cwh}${coff})" q_menu_mongo_dropdb case "${q_menu_mongo_dropdb,,}" in - "y" | "yes" | * ) - mongo_dropdb="--drop" - ;; "n" | "update" ) unset mongo_dropdb ;; @@ -1142,6 +1139,9 @@ EOF print_info "Quitting Script" exit 1 ;; + "y" | "yes" | * ) + mongo_dropdb="--drop" + ;; esac print_info "Restoring '${r_filename}' into '${r_dbhost}'/'${r_dbname}'"