void-packages/srcpkgs/mariadb/INSTALL
John fbd3bb27e7 mariadb: fix template, update INSTALL
usr/bin/mysql_install_db is only supposed to initilize the state,
for upgrades mysql_upgrade should be used
2021-04-15 22:04:00 +02:00

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