From 2eae1376fed1314eb1ccc8fb79157db9698f24d1 Mon Sep 17 00:00:00 2001 From: Alexey Bychko Date: Tue, 23 Mar 2021 12:37:55 +0700 Subject: [PATCH] fixed typo in postinst script --- support-files/rpm/server-postin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index db249c326a673..61c417e3e7d31 100644 --- a/support-files/rpm/server-postin.sh +++ b/support-files/rpm/server-postin.sh @@ -40,7 +40,7 @@ if [ $1 = 1 ] ; then # Create a MySQL user and group. Do not report any problems if it already # exists. groupadd -r %{mysqld_group} 2> /dev/null || true - useradd -M -r --home $datadir --shell /sbin/nologin --comment "MySQL server" --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true + useradd -M -r --home $datadir --shell /sbin/nologin --comment "MySQL server" --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true # The user may already exist, make sure it has the proper group nevertheless (BUG#12823) usermod --gid %{mysqld_group} %{mysqld_user} 2> /dev/null || true @@ -81,7 +81,7 @@ if [ -x /usr/sbin/semodule ] ; then /usr/sbin/semodule -i /usr/share/mysql/policy/selinux/mariadb.pp fi -if [ -x sbin/restorecon ] ; then - sbin/restorecon -R var/lib/mysql +if [ -x /sbin/restorecon ] ; then + /sbin/restorecon -R /var/lib/mysql fi