grenade/from-grizzly/upgrade-glance
Sean Dague c6a3491452 do xtrace in include scripts correctly
the included upgrade scripts were turning off xtrace, not
restoring it like we should have been doing. This makes debugging
many of the upgrade issues very difficult.

fix this with the standard xtrace restore.

Change-Id: I922d139b83644a2584c46fecb51b346b05feeec8
2014-01-16 16:23:06 -05:00

19 lines
430 B
Bash
Executable File

#!/usr/bin/env bash
# ``upgrade-glance``
# configure_glance
function configure_glance_upgrade(){
XTRACE=$(set +o | grep xtrace)
set -o xtrace
# guarantee we have all rules set in the new release
cp -p $GLANCE_DIR/etc/policy.json $GLANCE_POLICY_JSON
if [ -n "$GLANCE_SCHEMA_JSON" ]; then
cp -p $GLANCE_DIR/etc/schema-image.json $GLANCE_SCHEMA_JSON
fi
# reset to previous state
$XTRACE
}