diff --git a/utils/kamctl/kamdbctl b/utils/kamctl/kamdbctl index 224111b9fb2..e66f3eb4cef 100755 --- a/utils/kamctl/kamdbctl +++ b/utils/kamctl/kamdbctl @@ -409,6 +409,14 @@ case $1 in reinit) # delete database and create a new one # create new database structures + + # confirm dropping of database + echo -e "This will drop your current database and create a new one.\nIt is recommended to first backup your database.\n" + get_answer ask "Continue with reinit? (y/n): " + if [ "$ANSWER" != "y" ]; then + exit 1 + fi + shift if [ $# -eq 1 ] ; then DBNAME="$1"