2014-12-04 20:03:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
2014-12-04 20:03:08 +00:00
|
|
|
set -o pipefail
|
|
|
|
|
2015-05-22 22:18:15 +00:00
|
|
|
# exit directly if DIB_YUM_REPO_CONF is not defined properly
|
|
|
|
if [ -z "${DIB_YUM_REPO_CONF:-}" ] ; then
|
|
|
|
echo "DIB_YUM_REPO_CONF is not set - no repo configurations will be cleaned up"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
for file in $DIB_YUM_REPO_CONF; do
|
|
|
|
sudo rm -f $TMP_MOUNT_PATH/etc/yum.repos.d/$(basename $file)
|
|
|
|
done
|