mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 01:34:17 +01:00
fixed typo in postinst script
This commit is contained in:
parent
aba7884138
commit
2eae1376fe
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ if [ $1 = 1 ] ; then
|
||||||
# Create a MySQL user and group. Do not report any problems if it already
|
# Create a MySQL user and group. Do not report any problems if it already
|
||||||
# exists.
|
# exists.
|
||||||
groupadd -r %{mysqld_group} 2> /dev/null || true
|
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)
|
# 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
|
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
|
/usr/sbin/semodule -i /usr/share/mysql/policy/selinux/mariadb.pp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x sbin/restorecon ] ; then
|
if [ -x /sbin/restorecon ] ; then
|
||||||
sbin/restorecon -R var/lib/mysql
|
/sbin/restorecon -R /var/lib/mysql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue