Browse Source

MDEV-19726 MariaDB server or backup RPM install assumes mysql user exists

also get rid of

   chown: cannot access ‘/var/lib/mysql’: No such file or directory

before someone reports a bug that
MariaDB server or backup RPM install assumes mysql datadir exists

followup for bee24fe181
pull/1387/head
Sergei Golubchik 7 years ago
parent
commit
5d04391f58
  1. 2
      support-files/rpm/server-postin.sh

2
support-files/rpm/server-postin.sh

@ -50,7 +50,7 @@ if [ $1 = 1 ] ; then
# Change permissions so that the user that will run the MySQL daemon
# owns all database files.
chown -R %{mysqld_user}:%{mysqld_group} $datadir
chown -R -f %{mysqld_user}:%{mysqld_group} $datadir
if [ ! -e $datadir/mysql ]; then
# Create data directory

Loading…
Cancel
Save