]> TLD Linux GIT Repositories - packages/mysql.git/commitdiff
- missing alternatives scripts for mysql-devel
authorMarcin Krol <hawk@tld-linux.org>
Sun, 31 Dec 2023 17:39:54 +0000 (18:39 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 31 Dec 2023 17:39:54 +0000 (18:39 +0100)
mysql.spec

index b2498d8ab2bd3abc56601aeb9bcac313596a5110..fa3075c2aad49178e1b67eadfc3589661a625a11 100644 (file)
@@ -803,6 +803,16 @@ if [ $1 -eq 0 ]; then
        update-alternatives --remove mysqldumpslow %{_libdir}/mysql/%{mysqlversion}/bin/mysqldumpslow || :
 fi
 
+%posttrans -n mysql-devel
+update-alternatives \
+       --install %{_bindir}/mysql_config mysql_config %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config %{mysqlpriority} \
+       --slave %{_mandir}/man1/mysql_config.1 mysql_config.1 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysql_config.1* || :
+
+%postun -n mysql-devel
+if [ $1 -eq 0 ]; then
+       update-alternatives --remove mysql_config %{_libdir}/mysql/%{mysqlversion}/bin/mysql_config || :
+fi
+
 %post ndb
 /sbin/chkconfig --add %{name}-ndb
 %service %{name}-ndb restart "%{name} NDB engine"