summaryrefslogtreecommitdiff
path: root/support-files/rpm
diff options
context:
space:
mode:
authorAlexey Bychko <alexey.bychko@mariadb.com>2021-03-23 12:37:55 +0700
committerAlexey Bychko <alexey.bychko@mariadb.com>2021-03-23 12:40:21 +0700
commitdf931d888fda67f2d01a0411aa963469befa54f3 (patch)
tree0d785a89c7ecfe93b78b6f6691221bd7c35e6206 /support-files/rpm
parentd902b53cfe365ea76b79c31b48f655191fcc994e (diff)
downloadmariadb-git-df931d888fda67f2d01a0411aa963469befa54f3.tar.gz
fixed typo in postinst script
Diffstat (limited to 'support-files/rpm')
-rw-r--r--support-files/rpm/server-postin.sh6
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