Fix devstack cleanup of data dir

Remove wasn't recursive and failing on a second run.

Change-Id: Ieb125cc78a5db2d5d93c244a71a8a2ca027d600c
This commit is contained in:
Stéphane Albert 2016-04-18 17:03:32 +02:00
parent 56cdfe9a9e
commit 097e395cee

View File

@ -151,11 +151,10 @@ function create_cloudkitty_data_dir {
# Create data dir
sudo mkdir -p $CLOUDKITTY_DATA_DIR
sudo chown $STACK_USER $CLOUDKITTY_DATA_DIR
rm -f $CLOUDKITTY_DATA_DIR/*
rm -rf $CLOUDKITTY_DATA_DIR/*
# Create locks dir
sudo mkdir -p $CLOUDKITTY_DATA_DIR/locks
sudo chown $STACK_USER $CLOUDKITTY_DATA_DIR/locks
rm -f $CLOUDKITTY_DATA_DIR/locks/*
}
# init_cloudkitty() - Initialize CloudKitty database