diff options
author | Otto Kekäläinen <otto@mariadb.org> | 2016-11-26 00:46:12 +0100 |
---|---|---|
committer | Otto Kekäläinen <otto@mariadb.org> | 2016-11-26 19:13:26 +0100 |
commit | 3a6e781ea39b67fabf1a528e6a071215a65f50b0 (patch) | |
tree | 05c3b25ef785b5b90bfc1536cec0b25f9b75a63d /debian/mariadb-server-10.2.preinst | |
parent | 618edd4057d7947fccdd2f486d118f8376e95081 (diff) | |
download | mariadb-git-3a6e781ea39b67fabf1a528e6a071215a65f50b0.tar.gz |
MDEV-9165: Run chown much faster on the datadir during install/update
Diffstat (limited to 'debian/mariadb-server-10.2.preinst')
-rw-r--r-- | debian/mariadb-server-10.2.preinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mariadb-server-10.2.preinst b/debian/mariadb-server-10.2.preinst index 9c37cba7a9c..f2b8882ab8e 100644 --- a/debian/mariadb-server-10.2.preinst +++ b/debian/mariadb-server-10.2.preinst @@ -199,7 +199,7 @@ fi # The "set +e" is necessary as e.g. a ".journal" of a ext3 partition is # not chgrp'able (#318435). set +e -chown mysql:mysql $mysql_datadir +find $mysql_datadir ! -uid $(id -u mysql) -print0 | xargs -0 -r chown mysql find $mysql_datadir -follow -not -group mysql -print0 2>/dev/null \ | xargs -0 --no-run-if-empty chgrp mysql set -e |