[TrivialFix] Remove extra slash

Change-Id: Ic45f618204875684f52133ec0f69fe7512ec9e2c
This commit is contained in:
likui 2021-06-04 18:33:33 +08:00 committed by Radosław Piliszek
parent 008ada9062
commit cccf4f7771

View File

@ -73,7 +73,7 @@ if [[ "$kafka_datadir_volume" != "kafka" && -d "$kafka_datadir_volume" ]]; then
rm -rfv $kafka_datadir_volume
fi
FOLDER_PATH="/etc/kolla/"
FOLDER_PATH="/etc/kolla"
if [[ -e "$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh" ]]; then
echo uninstalling ovs-dpdk service files and tools.
@ -81,12 +81,12 @@ if [[ -e "$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh" ]]; then
fi
echo "Getting folders name..."
for dir in $FOLDER_PATH*; do
if [ "$dir" == "$FOLDER_PATH""passwords.yml" ] || \
[ "$dir" == "$FOLDER_PATH""globals.yml" ] || \
[ "$dir" == "$FOLDER_PATH""kolla-build.conf" ] || \
[ "$dir" == "$FOLDER_PATH""config" ] || \
[ "$dir" == "$FOLDER_PATH""certificates" ]; then
for dir in $FOLDER_PATH/*; do
if [ "$dir" == "$FOLDER_PATH/passwords.yml" ] || \
[ "$dir" == "$FOLDER_PATH/globals.yml" ] || \
[ "$dir" == "$FOLDER_PATH/kolla-build.conf" ] || \
[ "$dir" == "$FOLDER_PATH/config" ] || \
[ "$dir" == "$FOLDER_PATH/certificates" ]; then
echo "Skipping:" $dir
else
rm -rfv $dir