From a51e3ed11393c615fd5ad95938c490f26514892b Mon Sep 17 00:00:00 2001 From: nfedotov Date: Fri, 29 May 2015 18:37:54 +0300 Subject: [PATCH] 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 --- tools/configure_for_vpn_func_testing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configure_for_vpn_func_testing.sh b/tools/configure_for_vpn_func_testing.sh index 194cc53e2..daacaba83 100755 --- a/tools/configure_for_vpn_func_testing.sh +++ b/tools/configure_for_vpn_func_testing.sh @@ -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 }