From: Loic Dachary Date: Wed, 8 Feb 2017 23:02:26 +0000 (+0100) Subject: openstack: nginx root moved to /var/www/html X-Git-Tag: 1.1.0~211^2~62 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8776597301a87821efb38091054a4712f3e32490;p=teuthology.git openstack: nginx root moved to /var/www/html In ubuntu 16.04 Signed-off-by: Loic Dachary --- diff --git a/teuthology/openstack/setup-openstack.sh b/teuthology/openstack/setup-openstack.sh index 3c12bcd192..b4c6b2052d 100755 --- a/teuthology/openstack/setup-openstack.sh +++ b/teuthology/openstack/setup-openstack.sh @@ -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