Skip to content

Commit fd98314

Browse files
committed
BUG#21950975 - MYSQL RPM INSTALLER(NEW STYLE) FAILS TO CREATE 'MYSQL' USER FOR EL5
- Remove -N option in useradd for EL5 platforms
1 parent 5f2d347 commit fd98314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/rpm-oel/mysql.spec.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ rm -r $(readlink var) var
622622

623623
%pre server
624624
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
625-
/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
625+
/usr/sbin/useradd -M %{!?el5:-N} -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
626626
-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
627627

628628
%post server

0 commit comments

Comments
 (0)