From: Loic Dachary Date: Sat, 12 Mar 2016 09:39:12 +0000 (+0700) Subject: openstack: clear nginx root X-Git-Tag: 1.1.0~211^2~70 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3a1b6c421a5eef9f687f1fae95e4a5a143753dd2;p=teuthology.git openstack: clear nginx root So it can be explored by a human being instead of being hidden by an empty index.html. Signed-off-by: Loic Dachary --- diff --git a/teuthology/openstack/setup-openstack.sh b/teuthology/openstack/setup-openstack.sh index bc78721c4..88248f0f8 100755 --- a/teuthology/openstack/setup-openstack.sh +++ b/teuthology/openstack/setup-openstack.sh @@ -233,6 +233,7 @@ function setup_pulpito() { if ! grep -qq 'autoindex on' $nginx_conf ; then sudo perl -pi -e 's|location / {|location / { autoindex on;|' $nginx_conf sudo /etc/init.d/nginx restart + sudo rm -f /usr/share/nginx/html/*.html echo "ADDED autoindex on to nginx configuration" fi sudo chown $USER /usr/share/nginx/html