diff options
author | Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> | 2015-11-05 16:33:47 +0530 |
---|---|---|
committer | Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> | 2015-11-05 16:33:47 +0530 |
commit | fd9831410dfc878420fcd95dc576b955e94d2c76 (patch) | |
tree | c34da74d876b3794414ef7c131e54d88a6e64330 /packaging | |
parent | 5f2d3479ffed18e28435c9ad130d400e7290e0bb (diff) | |
download | mariadb-git-fd9831410dfc878420fcd95dc576b955e94d2c76.tar.gz |
BUG#21950975 - MYSQL RPM INSTALLER(NEW STYLE) FAILS TO CREATE 'MYSQL' USER FOR EL5
- Remove -N option in useradd for EL5 platforms
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/rpm-oel/mysql.spec.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/rpm-oel/mysql.spec.in b/packaging/rpm-oel/mysql.spec.in index 3136e47230b..a76eaa114f8 100644 --- a/packaging/rpm-oel/mysql.spec.in +++ b/packaging/rpm-oel/mysql.spec.in @@ -622,7 +622,7 @@ rm -r $(readlink var) var %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 \ +/usr/sbin/useradd -M %{!?el5:-N} -g mysql -o -r -d /var/lib/mysql -s /bin/bash \ -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || : %post server |