Correct MySQL script syntax error
[hcoop/domtool2.git] / src / plugins / domtool-mysql
index 657ed00..48af512 100755 (executable)
@@ -6,6 +6,7 @@ case $1 in
                PASSWORD=$3
 
                sudo -H mysql -e "CREATE USER '$USERNAME'@'localhost' IDENTIFIED BY '$PASSWORD';"
+       ;;
 
        passwd)
                USERNAME=$2
@@ -13,6 +14,7 @@ case $1 in
 
                sudo -H mysql -e "SET PASSWORD FOR '$USERNAME'@'localhost' = PASSWORD('$PASSWORD');"
        ;;
+
        createdb)
                USERNAME=$2
                DBNAME_BASE=$3