diff options
author | Alexander E. Patrakov <patrakov@gmail.com> | 2019-11-28 17:37:57 +0500 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2020-04-05 18:40:27 +0300 |
commit | 241ac3f4873007cced7b547837f311da5c1261ce (patch) | |
tree | 6510f76367f9a0cdd7db5e9ad8ff17238d8c4539 /scripts | |
parent | 31eaa2029f3c2a4f8e5609ce8b87682286238d9a (diff) | |
download | mariadb-git-241ac3f4873007cced7b547837f311da5c1261ce.tar.gz |
MDEV-21140 Make galera_recovery.sh work with fs.protected_regular = 1 (#1417)
The log file is opened as root since commit bb7a70c, so there is no need
to chown it.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/galera_recovery.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/galera_recovery.sh b/scripts/galera_recovery.sh index 709c4b0eed5..8df2abc3fd5 100644 --- a/scripts/galera_recovery.sh +++ b/scripts/galera_recovery.sh @@ -101,8 +101,7 @@ wsrep_recover_position() { # Safety checks if [ -n "$log_file" -a -f "$log_file" ]; then - [ "$euid" = "0" ] && chown $user $log_file - chmod 600 $log_file + chmod 600 $log_file else log "WSREP: mktemp failed" fi |