Skip to content

Commit 91d8ae2

Browse files
bkandasabjornmu
authored andcommitted
Followup fix for BUG#21950975 - MYSQL RPM INSTALLER(NEW STYLE) FAILS TO CREATE 'MYSQL' USER FOR EL5
(cherry picked from commit 01be55cdbbc9e5f9d2cb59d1aafb87717d82a9c0)
1 parent abed065 commit 91d8ae2

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
@@ -675,7 +675,7 @@ rm -r $(readlink var) var
675675

676676
%pre server
677677
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
678-
/usr/sbin/useradd -M %{!?el5:-N} -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
678+
/usr/sbin/useradd -M %{!?el5:-N} -g mysql -o -r -d /var/lib/mysql -s /bin/false \
679679
-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
680680

681681
%post server

0 commit comments

Comments
 (0)