4e6e8f0c0e
* Added support for Rocky Linux in the amphora-agent * Amphora images for Rocky can be built when setting OCTAVIA_AMP_BASE_OS="rocky" * Fixed the devstack plugin for Rocky Linux hosts Change-Id: I41f7e2341332b9cb74b4a59fedb6eed1af3c8062
27 lines
480 B
Bash
Executable File
27 lines
480 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
[ "${DIB_INSTALLTYPE_amphora_agent:-}" = "package" ] && exit 0
|
|
|
|
rm -rf /opt/amphora-agent
|
|
|
|
case $DISTRO_NAME in
|
|
ubuntu | debian )
|
|
apt-get --assume-yes purge --auto-remove
|
|
;;
|
|
fedora | centos* | rhel* | rocky )
|
|
YUM=${YUM:-yum}
|
|
${YUM} -v -y autoremove
|
|
;;
|
|
*)
|
|
echo "ERROR: Unsupported distribution $DISTRO_NAME"
|
|
exit 1
|
|
;;
|
|
esac
|