charm-ceph-osd/rename.sh
Samuel Allan b15973407a Add victoria to the UCA codename map
According to https://docs.openstack.org/charm-guide/latest/project/charm-delivery.html#tracks-for-the-openstack-charms-project
octopus is the supported release for OpenStack victoria,
so victoria must be included in the UCA codename map.

Otherwise the charm cannot determine correctly what action
should be taken after upgrading the `source` to victoria.

Closes-Bug: 2071875
Change-Id: Ia756c1df0f9d4b98bbb89586eda0534bcc28b041
2024-07-30 18:17:27 -03:00

14 lines
321 B
Bash
Executable File

#!/bin/bash
charm=$(grep "charm_build_name" osci.yaml | awk '{print $2}')
echo "renaming ${charm}_*.charm to ${charm}.charm"
echo -n "pwd: "
pwd
ls -al
echo "Removing bad downloaded charm maybe?"
if [[ -e "${charm}.charm" ]];
then
rm "${charm}.charm"
fi
echo "Renaming charm here."
mv ${charm}_*.charm ${charm}.charm