From: Thorsten Behrens Date: Wed, 10 Dec 2014 10:53:43 +0000 (+0100) Subject: Unconditionally chown rados log file. X-Git-Tag: v0.93~100^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3628%2Fhead;p=ceph.git 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. Signed-off-by: Thorsten Behrens --- diff --git a/src/init-radosgw b/src/init-radosgw index c38ddad616e5..1ef71c43d6a2 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 2e9df1faff5d..e210b79144ea 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