]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: ensure HOME environment variable 654/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 16 Sep 2015 19:14:37 +0000 (21:14 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 9 Oct 2015 16:02:29 +0000 (18:02 +0200)
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 <loic@dachary.org>
teuthology/openstack/openstack-teuthology.init

index 60e60486a952a427b3f2ccddb489708d3b3eca7d..5098a6bce50787f765df00270c113db6d3f933aa 100755 (executable)
@@ -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