juanluisbaptiste / docker-otrs

The unofficial Znuny/OTRS Ticketing System docker image
https://www.juanbaptiste.tech/category/otrs
GNU Lesser General Public License v3.0
173 stars 101 forks source link

OTRS_DB_USER not used #31

Closed 0963390788 closed 6 years ago

0963390788 commented 6 years ago

functions.sh hardcodes the user as "root" and doesn't allow you to define an already created database.

juanluisbaptiste commented 6 years ago

What are you talking about ?

root is only used to create OTRS_DB_USER, and that variable IS used:

function create_db() {
  print_info "Creating OTRS database..."
  $mysqlcmd -e "CREATE DATABASE IF NOT EXISTS ${OTRS_DB_NAME};"
  [ $? -gt 0 ] && print_error "Couldn't create OTRS database !!" && exit 1
  $mysqlcmd -e " GRANT ALL ON ${OTRS_DB_NAME}.* to '${OTRS_DB_USER}'@'%' identified by '${OTRS_DB_PASSWORD}'";
  [ $? -gt 0 ] && print_error "Couldn't create database user !!" && exit 1
}
0963390788 commented 6 years ago

"doesn't allow you to define an already created database."

juanluisbaptiste commented 6 years ago

But you are talking about the db user too so ? write a proper issue description if you want help, I sill dont understand whats your point.