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