fuel-plugin-mellanox/uninstall.sh
Rawan Herzallah fcef114eb5 Enhanced create_mellanox_bootstrap script
Added arg parser, changed script name and removed adding intel_iommu
parameter as plugin forces user to add it now.

Change-Id: I4a15ca4a67290ebdb764cedc543ca2afe8f158af
2016-05-10 06:40:49 +00:00

28 lines
731 B
Bash

EXTRA_SCRIPTS="/sbin/reboot_bootstrap_node
/sbin/create_mellanox_bootstrap"
# Verify run is over Fuel Master and we are not During upgrade
if [ -d $FUEL_BOOTSTRAP_DIR ] && [ $1 -eq 0 ]; then
source /var/www/nailgun/plugins/mellanox-plugin*/scripts/common
# Return orig active bootstrap
if [ -f $ORIG_BOOTSTRAP_VERSION_FILE ]; then
orig_uid=`cat $ORIG_BOOTSTRAP_VERSION_FILE`
fuel-bootstrap activate $orig_uid
\rm $ORIG_BOOTSTRAP_VERSION_FILE
fi
# Return orig yaml
if [ -f $ORIG_BOOTSTRAP_CLI_YAML ]; then
mv $ORIG_BOOTSTRAP_CLI_YAML $BOOTSTRAP_CLI_YAML
fi
for script in $EXTRA_SCRIPTS; do
# Remove extra scripts
if [ -e $script ]; then
\rm $script
fi
done
fi