summaryrefslogtreecommitdiff
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:45 +0700
commit117079474702fb38c6a9c5a8451ca62a2b31d6ec (patch)
tree31b2703a22ab305abfa97199c8f2a5ce816d7927
parent43ea3d25200a9a07955f1c0fb40c4888d78979ed (diff)
downloadmariadb-git-117079474702fb38c6a9c5a8451ca62a2b31d6ec.tar.gz
fixed typo in postinst script
-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