Commit 2cff5428 authored by Alexander E. Patrakov's avatar Alexander E. Patrakov Committed by Jan Lindström

MDEV-21140 Make galera_recovery.sh work with fs.protected_regular = 1 (#1417)

The log file is opened as root since commit bb7a70c9, so there is no need
to chown it.
parent ba3e9d0a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment