Set owner of Q_VPN_CONF_FILE file to STACK_USER user

Functional tests need to have access to configuration files.
Since the tests are started under 'stack' user
(sudo -H -u stack tox -e dsvm-functional) it would be better
to change owner of the Q_VPN_CONF_FILE file to STACK_USER.

Change-Id: I1ca677a805872726667df641255201cdd4cf4037
This commit is contained in:
nfedotov 2015-05-29 18:37:54 +03:00
parent a953c3585e
commit a51e3ed113
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ function _configure_vpn_ini_file {
iniset_multiline $temp_ini vpnagent vpn_device_driver neutron_vpnaas.services.vpn.device_drivers.ipsec.OpenSwanDriver
fi
sudo install -d -o $STACK_USER /etc/neutron/
sudo mv $temp_ini $Q_VPN_CONF_FILE
sudo install -m 644 -o $STACK_USER $temp_ini $Q_VPN_CONF_FILE
}