From a55b09d9e86794c782e954084415da86cdb846ff Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 2 Nov 2011 01:07:43 +0100 Subject: [PATCH] change stack to $USER --- stack.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/stack.sh b/stack.sh index 051be94..9ba0564 100755 --- a/stack.sh +++ b/stack.sh @@ -637,20 +637,10 @@ if [[ "$ENABLED_SERVICES" =~ "swift" ]];then for d in ${s}/{1..4} /etc/swift /etc/swift/{object,container,account}-server \ ${SWIFT_LOCATION}/{1..4}/node/sdb1 /var/run/swift ;do [[ -d $d ]] && continue - sudo install -g stack -o stack -d $d + sudo install -o ${USER} -d $d done sudo chown -R stack: ${SWIFT_LOCATION}/{1..4}/node - - # Adjust rc.local to always have a /var/run/swift on reboot - # created and chown to our user. - # TODO (chmou): We may not have a "exit 0" - sudo sed -i '/^exit 0/d' /etc/rc.local -cat <