Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mackhendricks committed Apr 25, 2022
2 parents e9f3dd7 + 162e3ed commit 90313c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsiprouter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ function configureKamailio {
# make sure kamailio user and privileges exist
mysql --user="$ROOT_DB_USER" --password="$ROOT_DB_PASS" --host="${KAM_DB_HOST}" --port="${KAM_DB_PORT}" $ROOT_DB_NAME \
-e "CREATE USER '$KAM_DB_USER'@'localhost' IDENTIFIED BY '$KAM_DB_PASS';" \
-e "CREATE USER '$KAM_DB_USER'@'%' IDENTIFIED BY '$KAM_DB_PASS';"
-e "CREATE USER '$KAM_DB_USER'@'%' IDENTIFIED BY '$KAM_DB_PASS';" > /dev/null 2>&1
if (( $? != 0 )); then
printwarn "The Kamailio user already exists in the database - not creating again"
fi
Expand Down

0 comments on commit 90313c5

Please sign in to comment.