fbd3bb27e7
usr/bin/mysql_install_db is only supposed to initilize the state, for upgrades mysql_upgrade should be used
13 lines
251 B
Text
13 lines
251 B
Text
# *-*-shell-*-*
|
|
#
|
|
case ${ACTION} in
|
|
post)
|
|
if [ "$UPDATE" = "yes" ]; then
|
|
:
|
|
elif [ -f var/lib/mysql/mysql-bin.index ]; then
|
|
:
|
|
else
|
|
chpst -u mysql:mysql usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
|
fi
|
|
;;
|
|
esac
|