Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
resource-agents.11488
0014-pgsql-Avoid-the-change-of-dev-null-to-post...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0014-pgsql-Avoid-the-change-of-dev-null-to-postgres-owner.patch of Package resource-agents.11488
From 102d73622d6bb92ca9e2b3e4448cea54cadd46d9 Mon Sep 17 00:00:00 2001 From: Diego Akechi <dakechi@suse.com> Date: Fri, 31 Aug 2018 13:57:10 +0200 Subject: [PATCH] pgsql: Avoid the change of /dev/null to postgres owner/group The check_log_file porforms a -f test on the logfile which is set to /dev/null by default, and it returns 1 for non-regular files. --- heartbeat/pgsql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heartbeat/pgsql b/heartbeat/pgsql index 147a1da7..22d6cce0 100755 --- a/heartbeat/pgsql +++ b/heartbeat/pgsql @@ -1976,7 +1976,7 @@ pgsql_validate_all() { # check_log_file() { - if [ ! -f "$1" ] + if [ ! -e "$1" ] then touch $1 > /dev/null 2>&1 chown $OCF_RESKEY_pgdba:`getent passwd $OCF_RESKEY_pgdba | cut -d ":" -f 4` $1 -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor