[csw-devel] SF.net SVN: gar:[15929] csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/ CSWmysql5.postinstall

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Oct 19 00:25:19 CEST 2011


Revision: 15929
          http://gar.svn.sourceforge.net/gar/?rev=15929&view=rev
Author:   wahwah
Date:     2011-10-18 22:25:19 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Updates to the postinstall file

Modified Paths:
--------------
    csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.postinstall

Modified: csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.postinstall
===================================================================
--- csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.postinstall	2011-10-18 09:33:18 UTC (rev 15928)
+++ csw/mgar/pkg/mysql5/branches/mysql-5.0.x/files/CSWmysql5.postinstall	2011-10-18 22:25:19 UTC (rev 15929)
@@ -10,9 +10,9 @@
 #
 # http://dev.mysql.com/doc/refman/5.0/en/option-files.html
 #
-prefix="/opt/csw/mysql5"
+prefix="/opt/csw"
 BASEDIR="${prefix}"
-MYSQL_HOME="/var${prefix}"
+MYSQL_HOME="/var${prefix}/mysql5"
 sysconfdir="/etc${prefix}"
 # https://www.opencsw.org/mantis/view.php?id=4646
 DEFAULTS_FILE="${sysconfdir}/my.cnf"
@@ -64,7 +64,7 @@
 echo "Creating MySQL core database in $MYSQLD_DATADIR"
 echo
 echo "###  The following messages are from mysql_install_db."
-$BASEDIR/bin/mysql_install_db \
+"$BASEDIR/bin/mysql_install_db-5.0" \
     --defaults-extra-file="$DEFAULTS_FILE" \
     --user="$MYSQLD_USER" \
     --basedir="$BASEDIR" \
@@ -72,7 +72,7 @@
 
 # Fix permissions on the data directory, since mysql_install_db was run as
 # root.
-chown -R mysql:mysql $MYSQLD_DATADIR
+chown -R ${MYSQLD_USER}:mysql $MYSQLD_DATADIR
 
 # Update --datadir in the cnf file with the correct value if file was copied
 if [ x"$CNFCOPIED" = xyes ]; then

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list