#!/bin/bash echo "choose a password for the database:" read -s input echo "use sudo? [y/n]" read answer if [[ $answer == 'y' ]] then sudo="sudo" fi echo "creating database..." $sudo $mariadb -u root <