Commit 4463a1f3 authored by David Johnson's avatar David Johnson

Only rebuild static dashboard assets if we patch the dashboard.

parent a71768cc
......@@ -2011,9 +2011,9 @@ EOF
# default.
#
if [ $OSVERSION -ge $OSNEWTON ]; then
patch -p0 -d / < $DIRNAME/etc/horizon-${OSCODENAME}-no-default-volcreate.patch
# Rebuild after patching javascripts.
/usr/share/openstack-dashboard/manage.py collectstatic --noinput \
# Rebuild after successfully patching javascripts.
patch -p0 -d / < $DIRNAME/etc/horizon-${OSCODENAME}-no-default-volcreate.patch \
&& /usr/share/openstack-dashboard/manage.py collectstatic --noinput \
&& /usr/share/openstack-dashboard/manage.py compress
fi
......
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