From: Loic Dachary Date: Wed, 16 Sep 2015 19:14:37 +0000 (+0200) Subject: openstack: ensure HOME environment variable X-Git-Tag: 1.1.0~792^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F654%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/openstack/openstack-teuthology.init b/teuthology/openstack/openstack-teuthology.init index 60e60486..5098a6bc 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