Browse code

Don't use 'stack' in static but use $USER.

Chmouel Boudjnah authored on 2011/11/02 09:10:38
Showing 5 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 devices = %NODE_PATH%/node
3 3
 mount_check = false
4 4
 bind_port = %BIND_PORT%
5
-user = stack
5
+user = %USER%
6 6
 log_facility = LOG_LOCAL%LOG_FACILITY%
7 7
 
8 8
 [pipeline:main]
... ...
@@ -2,7 +2,7 @@
2 2
 devices = %NODE_PATH%/node
3 3
 mount_check = false
4 4
 bind_port = %BIND_PORT%
5
-user = stack
5
+user = %USER%
6 6
 log_facility = LOG_LOCAL%LOG_FACILITY%
7 7
 
8 8
 [pipeline:main]
... ...
@@ -2,7 +2,7 @@
2 2
 devices = %NODE_PATH%/node
3 3
 mount_check = false
4 4
 bind_port = %BIND_PORT%
5
-user = stack
5
+user = %USER%
6 6
 log_facility = LOG_LOCAL%LOG_FACILITY%
7 7
 
8 8
 [pipeline:main]
... ...
@@ -1,6 +1,6 @@
1 1
 [DEFAULT]
2 2
 bind_port = 8080
3
-user = stack
3
+user = %USER%
4 4
 log_facility = LOG_LOCAL1
5 5
 
6 6
 [pipeline:main]
... ...
@@ -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 ))