- better version detection

- drop /etc/mysql dir, use upstream /etc/my.cfn.d only

OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=135
This commit is contained in:
Michal Hrusecky (old before rename to _miska_)
2013-09-09 08:37:43 +00:00
committed by Git OBS Bridge
parent 9e2f158d0c
commit e0dc87fb00
5 changed files with 12 additions and 5 deletions

View File

@@ -88,6 +88,7 @@ for i in "${DOCS[@]}"; do
install -m 644 "${i}" "${DOCDIR}" || true
done
install -m 755 %_sourcedir/rc.mysql-multi %buildroot/etc/init.d/mysql
sed -i 's|@MYSQLVER@|%{version}|' %buildroot/etc/init.d/mysql
ln -sf ../../etc/init.d/mysql %buildroot/usr/sbin/rcmysql
# this is used by the init script
install -m 755 -d %buildroot/var/run/mysql