Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ceph.401
0021-Unconditionally-chown-rados-log-fil.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0021-Unconditionally-chown-rados-log-fil.patch of Package ceph.401
From: Thorsten Behrens <tbehrens@suse.com> Date: Wed, 10 Dec 2014 11:53:43 +0100 Subject: [PATCH] Unconditionally chown rados log file. This fixes bnc#905047 (in a somewhat ad-hoc way). Sadly the log file gets created from several places, so its existence does not mean init-radosgw had actually run. (cherry picked from commit 5c2ad621b0f4ebb1356951b64470703f604d31e5) --- src/init-radosgw | 6 ++++-- src/init-radosgw.sysv | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/init-radosgw b/src/init-radosgw index b0f6a9a..9f019bc 100644 --- a/src/init-radosgw +++ b/src/init-radosgw @@ -72,8 +72,10 @@ case "$1" in fi log_file=`$RADOSGW -n $name --show-config-value log_file` - if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then - touch "$log_file" + if [ -n "$log_file" ]; then + if [ ! -e "$log_file" ]; then + touch "$log_file" + fi chown $user $log_file fi diff --git a/src/init-radosgw.sysv b/src/init-radosgw.sysv index 06d41f6..8468eb2 100644 --- a/src/init-radosgw.sysv +++ b/src/init-radosgw.sysv @@ -79,8 +79,10 @@ case "$1" in fi log_file=`$RADOSGW -n $name --show-config-value log_file` - if [ -n "$log_file" ] && [ ! -e "$log_file" ]; then - touch "$log_file" + if [ -n "$log_file" ]; then + if [ ! -e "$log_file" ]; then + touch "$log_file" + fi chown $user $log_file fi
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