SPECfile cleanup - Remove single-purpose macro, especially when it holds the same value as another macro

This commit is contained in:
Michal Schorm 2023-11-30 14:01:46 +01:00 committed by Lukas Javorsky
parent fdceea6e72
commit be241fe6cb

View File

@ -63,8 +63,6 @@
%global pidfiledir %{_rundir}/%{daemon_name}
# Defining where database data live
%global dbdatadir %{_localstatedir}/lib/mysql
# Home directory of mysql user should be same for all packages that create it
%global mysqluserhome /var/lib/mysql
# Provide mysql names for compatibility
@ -670,7 +668,7 @@ popd
%pre server
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
/usr/sbin/useradd -M -N -g mysql -o -r -d %{mysqluserhome} -s /sbin/nologin \
/usr/sbin/useradd -M -N -g mysql -o -r -d %{dbdatadir} -s /sbin/nologin \
-c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
%post server