summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-07-05 08:37:44 +0200
committerSergei Golubchik <serg@mariadb.org>2019-07-10 08:58:28 +0200
commit5d04391f58b404760c5254c8722c2da732ce2630 (patch)
treea5a68b55fbf7c4dadb2345a97d182a1ec8e89591 /support-files
parentbdc961acc7ae9d5a3661ac425e936cd03dc5ccbb (diff)
downloadmariadb-git-5d04391f58b404760c5254c8722c2da732ce2630.tar.gz
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 bee24fe1818
Diffstat (limited to 'support-files')
-rw-r--r--support-files/rpm/server-postin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh
index 0a5bac73f0b..deb27c98ac1 100644
--- a/support-files/rpm/server-postin.sh
+++ b/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