Skip to content
Permalink
Browse files
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.
  • Loading branch information
patrakov authored and Jan Lindström committed Nov 28, 2019
1 parent a6e8a7d commit f6003fb
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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

0 comments on commit f6003fb

Please sign in to comment.