Skip to content

Commit

Permalink
Merge pull request #1 from zhangguoqing/master
Browse files Browse the repository at this point in the history
Set global var in /etc/profile rather than ~/.bashrc
  • Loading branch information
skywalker-nick committed Nov 1, 2013
2 parents 5efb15c + 87a3dcb commit 3769c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ pip install -r swift/test-requirements.txt

# configure swift nodes
config_swift() {
echo "export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf" >> ~/.bashrc
echo "export PATH=${PATH}:`pwd`/bin:`pwd`/swift/bin" >> ~/.bashrc
. ~/.bashrc
echo "export SWIFT_TEST_CONFIG_FILE=/etc/swift/test.conf" >> /etc/profile
echo "export PATH=${PATH}:`pwd`/bin:`pwd`/swift/bin" >> /etc/profile
source /etc/profile

# configure each node
cat << EOF > /etc/swift/proxy-server.conf
Expand Down

1 comment on commit 3769c8f

@skywalker-nick
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. Thanks.

Please sign in to comment.