Changeset 10801


Ignore:
Timestamp:
2005-11-01T11:24:43+13:00 (18 years ago)
Author:
kjdon
Message:

mysql datadir is now a property and can be set in build.properties. if you are installing on an NFS drive in linux, then it seems to have problems with removing locks after the program has shut down. you need to put the data directory in a local drive

Location:
trunk/gsdl3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/build.properties

    r10778 r10801  
    3737#Should passwords be set for the root and greenstone mysql users?
    3838mysql.use.passwords=yes
    39 
     39## If you are installing greenstone (including mysql) in an nfs directory, mysql may not work. The data directory needs to be on a local drive - set the location here
     40#mysql.datadir=
    4041## Mysql user passwords: uncomment and set the following if you don't want to be prompted for them during installation
    4142#The root password for a local mysql installation
  • trunk/gsdl3/build.xml

    r10799 r10801  
    120120  <property name="gsdl-as.home" value="${packages.home}/gsdl-as"/>
    121121
     122  <property name="mysql.datadir" value="./data"/>
    122123<!--  ==================== Compilation Control Options ==================== -->
    123124
     
    692693   
    693694    <exec executable="${mysql.home}/scripts/mysql_install_db" dir="${mysql.home}">
    694       <arg value="--datadir=./data"/>
     695      <arg value="--datadir=${mysql.datadir}"/>
    695696      <arg value="--basedir=."/>
    696697      <arg value="--user=root"/>
     
    721722    <chmod file="${mysql.home}/var/log/" perm="777" type="dir"/>
    722723    <exec executable="${mysql.home}/scripts/mysql_install_db" dir="${mysql.home}">
    723       <arg value="--datadir=./data"/>
     724      <arg value="--datadir=${mysql.datadir}"/>
    724725      <arg value="--basedir=."/>
    725726      <!--<arg value="- -user=root"/>
     
    785786    <exec executable="${mysql.home}/bin/mysqld_safe" dir="${mysql.home}"
    786787      spawn="true" os="${os.linux},${os.mac}">
    787       <arg value="--datadir=./data"/>
     788      <arg value="--datadir=${mysql.datadir}"/>
    788789      <arg value="--basedir=."/>
    789790      <arg value="--pid_file=gsdl3.pid"/>
     
    14861487    <antcall target="prepare-mysql"/>
    14871488    <delete file="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz"/>
     1489    <delete file="${packages.home}/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc.tar.gz"/>
     1490    <delete file="${packages.home}/mysql-noinstall-4.1.11-win32.zip"/>
    14881491    <delete dir="${packages.home}/mysql/sql-bench"/>
    14891492    <delete dir="${packages.home}/mysql/tests"/>
    14901493    <delete dir="${packages.home}/mysql/mysql-test"/>
     1494    <delete file="${packages.home}/mysql/var/log/mysql.log"/>
    14911495    <antcall target="prepare-tomcat"/>
    14921496    <delete file="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7.zip"/>
Note: See TracChangeset for help on using the changeset viewer.