Index: scripts/mysql_install_db.sh --- scripts/mysql_install_db.sh.orig +++ scripts/mysql_install_db.sh @@ -29,8 +29,8 @@ args="" defaults="" defaults_group_suffix="" mysqld_opt="" -user="" -group="" +user="_mysql" +group="_mysql" silent_startup="--silent-startup" log_error="" @@ -482,13 +482,13 @@ do then if test -z "$group" then - chown $user $dir + chown -f $user $dir else - chown $user:$group $dir + chown -f $user:$group $dir fi if test $? -ne 0 then - echo "Cannot change ownership of the database directories to the '$user'" + echo "Cannot change ownership of the database directories to the '$user:$group'" echo "user. Check that you have the necessary permissions and try again." exit 1 fi @@ -652,10 +652,6 @@ fi # the screen. if test "$cross_bootstrap" -eq 0 && test -z "$srcdir" then - s_echo - s_echo "To start mariadbd at boot time you have to copy" - s_echo "support-files/mariadb.service to the right place for your system" - if test "$auth_root_authentication_method" = normal then echo @@ -687,10 +683,7 @@ then then echo echo "You can start the MariaDB daemon with:" - echo "cd '$basedir' ; $bindir/mariadbd-safe --datadir='$ldata'" - echo - echo "You can test the MariaDB daemon with mariadb-test-run.pl" - echo "cd '$basedir/@INSTALL_MYSQLTESTDIR@' ; perl mariadb-test-run.pl" + echo "/etc/rc.d/mysqld start" fi echo