From be241fe6cb6c9fa2a21f6683ef743f9dfc19f9f2 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Thu, 30 Nov 2023 14:01:46 +0100 Subject: [PATCH] SPECfile cleanup - Remove single-purpose macro, especially when it holds the same value as another macro --- community-mysql.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/community-mysql.spec b/community-mysql.spec index 790911e..773cfd5 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -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