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

Andrea Scarpino andrea at archlinux.org
Sun Nov 22 00:00:12 EST 2009


    Date: Sunday, November 22, 2009 @ 00:00:11
  Author: andrea
Revision: 59320

minor fix

Modified:
  mysql/trunk/mysql.install

---------------+
 mysql.install |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: mysql.install
===================================================================
--- mysql.install	2009-11-22 04:56:06 UTC (rev 59319)
+++ mysql.install	2009-11-22 05:00:11 UTC (rev 59320)
@@ -7,13 +7,13 @@
 }
 
 post_upgrade(){
-  getent group mysql &>/dev/null || groupadd -g 89 mysql &>/dev/null
-  getent passwd mysql &>/dev/null || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
+  getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql
+  getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql
   chown -R mysql:mysql var/lib/mysql &> /dev/null
   chown mysql:mysql var/run/mysqld &> /dev/null
 }
 
 post_remove(){
-  getent passwd mysql &>/dev/null || userdel mysql &>/dev/null
-  getent group mysql &>/dev/null || groupdel mysql &>/dev/null
+  getent passwd mysql >/dev/null 2>&1 || userdel mysql &> /dev/null
+  getent group mysql >/dev/null 2>&1 || groupdel mysql &> /dev/null
 }



More information about the arch-commits mailing list