ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / mysql5 / postinst
blob47489d539afe91e0c41f983f627950740e023e41
1 #!/bin/sh
3 # postinstall - this script will be executed after the MySQL PKG
4 # installation has been performed.
6 # This script will install the MySQL privilege tables using the
7 # "mysql_install_db" script and will correct the ownerships of these files
8 # afterwards.
10 # it also starts mysqld after install
12 if [ ! -f /opt/var/lib/mysql/mysql/db.frm ] ; then
13 /opt/bin/mysql_install_db
16 if [ -d /opt/var/lib/mysql ] ; then
17 chown -R root:root /opt/var/lib/mysql
20 /opt/etc/init.d/S70mysqld start