diff options
author | Alexey Bychko <alexey.bychko@mariadb.com> | 2021-03-23 12:37:55 +0700 |
---|---|---|
committer | Alexey Bychko <alexey.bychko@mariadb.com> | 2021-03-23 12:40:21 +0700 |
commit | df931d888fda67f2d01a0411aa963469befa54f3 (patch) | |
tree | 0d785a89c7ecfe93b78b6f6691221bd7c35e6206 /support-files/rpm | |
parent | d902b53cfe365ea76b79c31b48f655191fcc994e (diff) | |
download | mariadb-git-df931d888fda67f2d01a0411aa963469befa54f3.tar.gz |
fixed typo in postinst script
Diffstat (limited to 'support-files/rpm')
-rw-r--r-- | support-files/rpm/server-postin.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index db249c326a6..61c417e3e7d 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 |