summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-06-25 18:57:37 +0200
committerRemi Collet <fedora@famillecollet.com>2010-06-25 18:57:37 +0200
commita5354785ab9b6eeac426ff409e12b4bd24907fc0 (patch)
treef70c2a24e149a0ebcb6ef207f6d5fda7796efaa9
parent942391dbdf85b9d3826a7471972c3dc6f6648422 (diff)
MySQL 5.1.48-1.1 (fix useradd issue on old fedora version and EL)
-rw-r--r--mysql.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/mysql.spec b/mysql.spec
index 06b8729..9f648d6 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -1,6 +1,6 @@
Name: mysql
Version: 5.1.48
-Release: 1%{?dist}
+Release: 1%{?dist}.1
Summary: MySQL client programs and shared libraries
Group: Applications/Databases
URL: http://www.mysql.com
@@ -393,7 +393,8 @@ echo -e "You should consider upgrading to a supported release.\n"
%pre server
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
-/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
+# -N options used on Fedora not available on EL and fedora <= 8 and EL <= 5
+/usr/sbin/useradd -M -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
%post libs
@@ -606,6 +607,9 @@ fi
%changelog
+* Fri Jun 25 2010 Remi Collet <RPMS@FamilleCollet.com> - 5.1.48-1.1
+- fix useradd command (-N not supported everywhere)
+
* Thu Jun 17 2010 Remi Collet <RPMS@FamilleCollet.com> - 5.1.48-1
- sync with rawhide
- Update to MySQL 5.1.48 Community Server GA