]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: nginx root moved to /var/www/html
authorLoic Dachary <ldachary@redhat.com>
Wed, 8 Feb 2017 23:02:26 +0000 (00:02 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
In ubuntu 16.04

Signed-off-by: Loic Dachary <ldachary@redhat.com>
teuthology/openstack/setup-openstack.sh

index 3c12bcd1925793d8dc1880dc892dd14a6064c055..b4c6b2052daabd89996e3b06e78cdcc8ed6a554e 100755 (executable)
@@ -231,6 +231,7 @@ function setup_pulpito() {
 
     sudo apt-get -qq install -y --force-yes nginx
     local nginx_conf=/etc/nginx/sites-available/default
+    sudo perl -pi -e 's|root /var/www/html|root /usr/share/nginx/html|' $nginx_conf
     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