mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
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.
This commit is contained in:
committed by
Jan Lindström
parent
a6e8a7df82
commit
f6003fbc8c
@@ -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
|
||||
|
Reference in New Issue
Block a user