fix grenade from mitaka upgrade

Change-Id: I394efc93fd8943d751ece2f89608ea5b04118213
This commit is contained in:
Vitaly Gridnev 2016-06-09 13:15:14 +03:00
parent 165172f1ae
commit b122ffbfff

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# ``upgrade-sahara``
function configure_sahara_upgrade {
XTRACE=$(set +o | grep xtrace)
set -o xtrace
local old_plugins
old_plugins=$(cat $SAHARA_CONF_DIR/sahara.conf | grep ^plugins)
sed -i.bak "s/$old_plugins/plugins=fake,vanilla,cdh/g" $SAHARA_CONF_DIR/sahara.conf
# reset to previous state
$XTRACE
}