Use same script for both SSL and non-SSL users

This commit is contained in:
Markus Mäkelä
2020-11-16 16:54:37 +02:00
parent 43c53e2f79
commit 558bd9279b
2 changed files with 13 additions and 12 deletions

View File

@ -1,8 +1,4 @@
#!/bin/bash
echo "DROP USER '$node_user'@'%'" | sudo mysql $1
echo "grant all privileges on *.* to '$node_user'@'%' identified by '$node_password' require ssl WITH GRANT OPTION"
echo "grant all privileges on *.* to '$node_user'@'%' identified by '$node_password' require ssl WITH GRANT OPTION" | sudo mysql $1
echo "grant all privileges on *.* to 'maxskysql'@'%' identified by 'skysql' require ssl WITH GRANT OPTION" | sudo mysql $1
echo "grant all privileges on *.* to 'maxuser'@'%' identified by 'maxpwd' require ssl WITH GRANT OPTION" | sudo mysql $1
export require_ssl="REQUIRE SSL"
./create_user.sh $1