]> 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:13 +0000 (18:39 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 31 Dec 2023 17:39:13 +0000 (18:39 +0100)
mysql.spec

index e003056358a8119ddb54191b9c833dbb93c5fab9..6ee8ddbe64b8792b5a70fbc3a971ebd9c1d79177 100644 (file)
@@ -801,6 +801,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"