summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander E. Patrakov <patrakov@gmail.com>2019-11-28 17:37:57 +0500
committerJan Lindström <jan.lindstrom@mariadb.com>2020-02-16 13:48:35 +0200
commit2cff5428920a05bc8918d55ba3e221f065313c86 (patch)
treee8b619a1563eb1f480edd257581a100a5b21e28e /scripts
parentba3e9d0adbe6ab6de896b295b83afe46f62078b7 (diff)
downloadmariadb-git-2cff5428920a05bc8918d55ba3e221f065313c86.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.sh3
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