]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: clear nginx root
authorLoic Dachary <ldachary@redhat.com>
Sat, 12 Mar 2016 09:39:12 +0000 (16:39 +0700)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
So it can be explored by a human being instead of being hidden by an
empty index.html.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/openstack/setup-openstack.sh

index bc78721c47663709d9e33e2a186d5906d3245469..88248f0f866161af7cea3af37282856602c8a2b9 100755 (executable)
@@ -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