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
This commit is contained in:
parent
1e6e4289bc
commit
a0ced4df00
2
stack.sh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user