From a0ced4df0073e8c2405f41dbb8b50dbfb245eff8 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Tue, 27 May 2014 22:08:46 +0100 Subject: [PATCH] chown stack/data/nova/networks to $STACK_USER $USER may be undefined (resulting in an error exit from stack.sh) or may be the current $USER rather than the target $STACK_USER (which may or may not be the same) which could lead to errors later. This change brings about consistency: the rest of stack.sh always uses $STACK_USER. This same problem may be present in lib/marconi. Change-Id: Idff2bee88de4e1da11cd5765a03646caf3ede24f --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 8fb57c4d13..d2f18d48c1 100755 --- a/stack.sh +++ b/stack.sh @@ -1026,7 +1026,7 @@ if is_service_enabled n-net q-dhcp; then if is_service_enabled n-net; then rm -rf ${NOVA_STATE_PATH}/networks sudo mkdir -p ${NOVA_STATE_PATH}/networks - safe_chown -R ${USER} ${NOVA_STATE_PATH}/networks + safe_chown -R ${STACK_USER} ${NOVA_STATE_PATH}/networks fi # Force IP forwarding on, just in case