diff options
author | Alexander E. Patrakov <patrakov@gmail.com> | 2019-11-28 17:37:57 +0500 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2019-11-28 14:37:57 +0200 |
commit | f6003fbc8cbd6779b6e7fcf5b05293b54a4948f8 (patch) | |
tree | 3d47c09e28b88a293587f6886ca072640a3882e0 /scripts | |
parent | a6e8a7df82f8434fc522470a8b7ffd45160cef71 (diff) | |
download | mariadb-git-f6003fbc8cbd6779b6e7fcf5b05293b54a4948f8.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 |