$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
| ... | ... |
@@ -1026,7 +1026,7 @@ if is_service_enabled n-net q-dhcp; then |
| 1026 | 1026 |
if is_service_enabled n-net; then |
| 1027 | 1027 |
rm -rf ${NOVA_STATE_PATH}/networks
|
| 1028 | 1028 |
sudo mkdir -p ${NOVA_STATE_PATH}/networks
|
| 1029 |
- safe_chown -R ${USER} ${NOVA_STATE_PATH}/networks
|
|
| 1029 |
+ safe_chown -R ${STACK_USER} ${NOVA_STATE_PATH}/networks
|
|
| 1030 | 1030 |
fi |
| 1031 | 1031 |
|
| 1032 | 1032 |
# Force IP forwarding on, just in case |