From efbfc9d8ca01582596bb9e25603e35e5657fb732 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 16 Sep 2015 21:14:37 +0200 Subject: [PATCH] openstack: ensure HOME environment variable Make it so even after a reboot and run from root, the HOME is set to the user directory where the scripts are expected to be. Signed-off-by: Loic Dachary --- teuthology/openstack/openstack-teuthology.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/openstack/openstack-teuthology.init b/teuthology/openstack/openstack-teuthology.init index 60e60486a9..5098a6bce5 100755 --- a/teuthology/openstack/openstack-teuthology.init +++ b/teuthology/openstack/openstack-teuthology.init @@ -37,6 +37,8 @@ source /etc/default/teuthology user=${TEUTHOLOGY_USERNAME:-ubuntu} +export HOME=/home/$user + case $1 in start) /etc/init.d/beanstalkd start -- 2.39.5