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:37:55 +0700 |
commit | 9e57bd278f5bfb66a50f4a0d5aaf394db6625c63 (patch) | |
tree | bb849f19952fcd14aeb380af5c39305bdf4fe85f /support-files/rpm | |
parent | 8f7a6cde580298116b50b144984f996dc6af60ae (diff) | |
download | mariadb-git-9e57bd278f5bfb66a50f4a0d5aaf394db6625c63.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 71518423687..4d49f6f4e35 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 @@ -78,7 +78,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 |