7ed794627d
Tested by giovanni@ on amd64 and several ports@ readers. No problems found with a complete bulk build.
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
$OpenBSD: patch-scripts_mysql_install_db_sh,v 1.11 2009/07/27 15:19:15 sthen Exp $
|
|
--- scripts/mysql_install_db.sh.orig Fri Feb 13 19:55:54 2009
|
|
+++ scripts/mysql_install_db.sh Thu Mar 5 09:49:04 2009
|
|
@@ -27,7 +27,8 @@ srcdir=""
|
|
args=""
|
|
defaults=""
|
|
mysqld_opt=""
|
|
-user=""
|
|
+user=_mysql
|
|
+group=_mysql
|
|
|
|
force=0
|
|
in_rpm=0
|
|
@@ -108,6 +109,8 @@ parse_arguments()
|
|
# as 'user' (crucial e.g. if log-bin=/some_other_path/
|
|
# where a chown of datadir won't help)
|
|
user=`parse_arg "$arg"` ;;
|
|
+ --group=*)
|
|
+ group=`parse_arg "$arg"` ;;
|
|
--skip-name-resolve) ip_only=1 ;;
|
|
--verbose) verbose=1 ;; # Obsolete
|
|
--rpm) in_rpm=1 ;;
|
|
@@ -360,7 +363,7 @@ do
|
|
fi
|
|
if test -w / -a ! -z "$user"
|
|
then
|
|
- chown $user $dir
|
|
+ chown -f $user:$group $dir
|
|
fi
|
|
done
|
|
|
|
@@ -437,10 +440,6 @@ fi
|
|
# the screen.
|
|
if test "$cross_bootstrap" -eq 0 && test -z "$srcdir"
|
|
then
|
|
- s_echo
|
|
- s_echo "To start mysqld at boot time you have to copy"
|
|
- s_echo "support-files/mysql.server to the right place for your system"
|
|
-
|
|
echo
|
|
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
|
echo "To do so, start the server, then issue the following commands:"
|
|
@@ -456,17 +455,6 @@ then
|
|
echo "strongly recommended for production servers."
|
|
echo
|
|
echo "See the manual for more instructions."
|
|
-
|
|
- if test "$in_rpm" -eq 0
|
|
- then
|
|
- echo
|
|
- echo "You can start the MySQL daemon with:"
|
|
- echo "cd $basedir ; $bindir/mysqld_safe &"
|
|
- echo
|
|
- echo "You can test the MySQL daemon with mysql-test-run.pl"
|
|
- echo "cd $basedir/mysql-test ; perl mysql-test-run.pl"
|
|
- fi
|
|
-
|
|
echo
|
|
echo "Please report any problems with the $scriptdir/mysqlbug script!"
|
|
echo
|