[arch-commits] Commit in mysql/trunk (mysql.install)

Andrea Scarpino andrea at archlinux.org
Tue Jan 4 10:43:15 UTC 2011


    Date: Tuesday, January 4, 2011 @ 05:43:15
  Author: andrea
Revision: 104579

Display the warning message only when user update from 5.1 (FS#22305)

Modified:
  mysql/trunk/mysql.install

---------------+
 mysql.install |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: mysql.install
===================================================================
--- mysql.install	2011-01-04 09:37:57 UTC (rev 104578)
+++ mysql.install	2011-01-04 10:43:15 UTC (rev 104579)
@@ -9,7 +9,11 @@
   getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
   getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
 
-  echo " >> Major version update. Consider running mysql_upgrade."
+  if [ "$(vercmp $2 5.5)" -lt 0 ]; then
+    echo " >> "
+    echo " >> Major version update. Consider running mysql_upgrade on your databases."
+    echo " >> "
+  fi
 }
 
 post_remove(){




More information about the arch-commits mailing list