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:
parent
6d2408b791
commit
fbd3bb27e7
2 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,12 @@
|
|||
#
|
||||
case ${ACTION} in
|
||||
post)
|
||||
chpst -u mysql:mysql usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
||||
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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue