Skip to content

Commit

Permalink
fixed typo in postinst script
Browse files Browse the repository at this point in the history
  • Loading branch information
abychko committed Mar 23, 2021
1 parent 8f7a6cd commit 9e57bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support-files/rpm/server-postin.sh
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 9e57bd2

Please sign in to comment.