Skip to content

Commit ab2a529

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "swift: Fix the empty gid option in rsyncd.conf"
2 parents 48945c5 + 25f8427 commit ab2a529

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ function configure_swift {
335335
local node_number
336336
local swift_node_config
337337
local swift_log_dir
338-
local user_group
339338

340339
# Make sure to kill all swift processes first
341340
$SWIFT_BIN_DIR/swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
@@ -353,7 +352,7 @@ function configure_swift {
353352
# partitions (which make more sense when you have a multi-node
354353
# setup) we configure it with our version of rsync.
355354
sed -e "
356-
s/%GROUP%/${USER_GROUP}/;
355+
s/%GROUP%/$(id -g -n ${STACK_USER})/;
357356
s/%USER%/${STACK_USER}/;
358357
s,%SWIFT_DATA_DIR%,$SWIFT_DATA_DIR,;
359358
" $FILES/swift/rsyncd.conf | sudo tee /etc/rsyncd.conf

0 commit comments

Comments
 (0)