Commit d74be89c authored by David Johnson's avatar David Johnson

Add a couple missing fallback-to-EOL wgets.

The openstack people rename their branches to -eol variants, and so that
tarballs keep working in perpetuity despite us needing to download some
things, we first try the stable/<release> tag, then fall back to
<release>-eol tag.  Sigh...
parent 3b8bde10
......@@ -351,6 +351,10 @@ EOF
mkdir -p /var/www/cgi-bin/keystone
wget -O /var/www/cgi-bin/keystone/admin "http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=stable/${OSCODENAME}"
if [ ! $? -eq 0 ]; then
# Try the EOL version...
wget -O /var/www/cgi-bin/keystone/admin "http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=${OSCODENAME}-eol"
fi
cp -p /var/www/cgi-bin/keystone/admin /var/www/cgi-bin/keystone/main
chown -R keystone:keystone /var/www/cgi-bin/keystone
chmod 755 /var/www/cgi-bin/keystone/*
......@@ -2170,6 +2174,10 @@ EOF
a2ensite wsgi-ceilometer
wget -O /usr/bin/ceilometer-wsgi-app https://raw.githubusercontent.com/openstack/ceilometer/stable/${OSCODENAME}/ceilometer/api/app.wsgi
if [ ! $? -eq 0 ]; then
# Try the EOL version
wget -O /usr/bin/ceilometer-wsgi-app https://raw.githubusercontent.com/openstack/ceilometer/${OSCODENAME}-eol/ceilometer/api/app.wsgi
fi
service apache2 reload
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment