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:
parent
4ab4f23b4d
commit
a2759bcdb1
@ -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/
|
||||
|
5
releasenotes/notes/bug-1648554-0ff5f085f4e0f999.yaml
Normal file
5
releasenotes/notes/bug-1648554-0ff5f085f4e0f999.yaml
Normal 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.
|
Loading…
Reference in New Issue
Block a user