|
...
|
...
|
@@ -655,7 +655,7 @@ if [[ "$ENABLED_SERVICES" =~ "swift" ]];then
|
|
655
|
655
|
swift_auth_server=tempauth
|
|
656
|
656
|
fi
|
|
657
|
657
|
|
|
658
|
|
- sed "s/%SERVICE_TOKEN%/${SERVICE_TOKEN}/;s/%AUTH_SERVER%/${swift_auth_server}/" \
|
|
|
658
|
+ sed "s/%USER%/$USER/;s/%SERVICE_TOKEN%/${SERVICE_TOKEN}/;s/%AUTH_SERVER%/${swift_auth_server}/" \
|
|
659
|
659
|
$FILES/swift-proxy-server.conf|sudo tee /etc/swift/proxy-server.conf
|
|
660
|
660
|
|
|
661
|
661
|
# Generate swift.conf, we need to have the swift-hash being random
|
|
...
|
...
|
@@ -673,7 +673,7 @@ if [[ "$ENABLED_SERVICES" =~ "swift" ]];then
|
|
673
|
673
|
|
|
674
|
674
|
for node_number in {1..4};do
|
|
675
|
675
|
node_path=${SWIFT_LOCATION}/${node_number}
|
|
676
|
|
- sed -e "s,%NODE_PATH%,${node_path},;s,%BIND_PORT%,${bind_port},;s,%LOG_FACILITY%,${log_facility}," \
|
|
|
676
|
+ sed -e "s,%USER%,$USER,;s,%NODE_PATH%,${node_path},;s,%BIND_PORT%,${bind_port},;s,%LOG_FACILITY%,${log_facility}," \
|
|
677
|
677
|
$FILES/swift-${server_type}-server.conf > /etc/swift/${server_type}-server/${node_number}.conf
|
|
678
|
678
|
bind_port=$(( ${bind_port} + 10 ))
|
|
679
|
679
|
log_facility=$(( ${log_facility} + 1 ))
|