Update of /cvsroot/devil-linux/build/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3533/scripts
Modified Files:
mysql
Log Message:
created missing /var/mysql
Index: mysql
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/mysql,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- mysql 1 May 2009 18:15:55 -0000 1.27
+++ mysql 28 Jun 2009 01:55:29 -0000 1.28
@@ -66,8 +66,12 @@
userdel mysql
groupadd -g 46 mysql || exit 1
useradd -u 46 -g mysql -s /bin/false mysql || exit 1
+
if [ "$CONFIG_MYSQL_SERVER" = "y" ]; then
+ mkdir -p $CDDIR/var/mysql || exit 1
+ chmod 770 $CDDIR/var/mysql || exit 1
+ chown mysql.mysql $CDDIR/var/mysql || exit 1
echo "# Start MySQL Server?" >> $CONFIGFILE
echo "START_MYSQL=no" >> $CONFIGFILE
echo "MYSQL_PARM=\"--user=mysql --pid-file=/var/run/mysql.pid --datadir=/var/mysql\"" >> $CONFIGFILE
|