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 <tbehrens@suse.com>
(cherry picked from commit
41611ea27a42d6221c418613d24dce34d988f2e6)
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
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