Added -p flag to mkdir

- Add -p flag when creating configuration directory
 - Added a reno for this bug fix

Closes-Bug: #1648554
Change-Id: I8882738db03675a43911c04aa0172d7d3a55c5f1
This commit is contained in:
Helena McGough 2016-12-08 15:31:30 +00:00 committed by Helena
parent 4ab4f23b4d
commit a2759bcdb1
2 changed files with 6 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function install_collectd {
# Add conf file for plugin
function adapt_collectd_conf {
if [ ! -d "$COLLECTD_CONF_DIR" ]; then
sudo mkdir "$COLLECTD_CONF_DIR"
sudo mkdir -p "$COLLECTD_CONF_DIR"
fi
sudo cp $COLLECTD_CEILOMETER_DIR/etc/collectd.conf.d/collectd-ceilometer-plugin.conf $COLLECTD_CONF_DIR/

View File

@ -0,0 +1,5 @@
---
fixes:
- Fixes 'bug 1648554 https://bugs.launchpad.net/collectd-ceilometer-plugin/+bug/1648554'.
Added -p flag to "mkdir /etc/collectd/collectd.conf.d" to allow all
directories to be created.