From 5f1d5c3e1fbc309bff7afb4a9d2d28ac879a7c4e Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 29 Nov 2023 14:44:57 +0100 Subject: [PATCH] [13/20] SPECfile cleanup - Remove single-purpose macro, especially when it holds the same value as another macro --- mariadb.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index fd6d58b..9d5b8df 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -123,8 +123,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 @@ -1257,7 +1255,7 @@ export MTR_BUILD_THREAD=$(( $(date +%s) % 1100 )) %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