mariadb: fix template, update INSTALL

usr/bin/mysql_install_db is only supposed to initilize the state,
for upgrades mysql_upgrade should be used
This commit is contained in:
John 2021-04-15 22:02:07 +02:00
parent 6d2408b791
commit fbd3bb27e7
2 changed files with 8 additions and 2 deletions

View file

@ -2,6 +2,12 @@
#
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

View file

@ -65,7 +65,7 @@ post_install() {
vmkdir usr/lib/security
vmkdir etc/security
mv ${DESTDIR}/usr/share/pam_user_map.so ${DESTDIR}/usr/lib/security/
mv ${DESTDIR}/usr/share/user_map.conf etc/security/
mv ${DESTDIR}/usr/share/user_map.conf ${DESTDIR}/etc/security/
vsv mysqld
}