|
From: Heiko Z. <he...@zu...> - 2008-04-10 14:12:21
|
Quoting Bruce Smith <bl...@us...>: > Update of /cvsroot/devil-linux/build/scripts > In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv5853/scripts > > Modified Files: > mysql > Log Message: > Add user to my.cnf > > > Index: mysql > =================================================================== > RCS file: /cvsroot/devil-linux/build/scripts/mysql,v > retrieving revision 1.23 > retrieving revision 1.24 > diff -u -d -r1.23 -r1.24 > --- mysql 27 Mar 2008 14:27:03 -0000 1.23 > +++ mysql 10 Apr 2008 14:00:51 -0000 1.24 > @@ -56,7 +56,7 @@ > rm $TMPDIR/usr/lib/*.la || exit 1 > copy_docs $TMPDIR > rm -rf $TMPDIR/usr/mysql-test || exit 1 > - cp $TMPDIR/usr/share/mysql/my-small.cnf $ETCDIR/etc/my.cnf || exit 1 > + sed 's/^\[mysqld\] *$/&\nuser\t\t= mysql/' > $TMPDIR/usr/share/mysql/my-small.cnf > $ETCDIR/etc/my.cnf || exit 1 > mkdir -p $CDDIR > copy_files $TMPDIR/usr $CDDIR || exit 1 > rm -rf $TMPDIR || exit 1 > Should we add this statement to the init script for mysql? This would help us with custom my.cnf files, but would prevent users from changing the username for mysql (is anybody really doing that?). -- Regards Heiko Zuerker http://www.devil-linux.org ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |