From 8e3df96cec11ae32fba6a6031ee60850251789f9 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Mon, 18 Jan 2016 14:00:41 -0500 Subject: [PATCH] use sudo to remove /etc/openstack directory the /etc/openstack directory needs to be removed with sudo privs, the loop at the end will not suffice. Change-Id: Icc0ac45f9216d538ca214176d90241f973a4687b --- clean.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clean.sh b/clean.sh index 5da78519ba..c8b822317d 100755 --- a/clean.sh +++ b/clean.sh @@ -104,7 +104,7 @@ if is_service_enabled nova && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; th fi # Clean out /etc -sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/heat /etc/neutron +sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/heat /etc/neutron /etc/openstack/ # Clean out tgt sudo rm -f /etc/tgt/conf.d/* @@ -136,8 +136,8 @@ rm -rf $DIRS_TO_CLEAN FILES_TO_CLEAN=".localrc.auto .localrc.password " FILES_TO_CLEAN+="docs/files docs/html shocco/ " FILES_TO_CLEAN+="stack-screenrc test*.conf* test.ini* " -FILES_TO_CLEAN+=".stackenv .prereqs" -FILES_TO_CLEAN+="/etc/openstack/ ~/.config/openstack" +FILES_TO_CLEAN+=".stackenv .prereqs " +FILES_TO_CLEAN+="~/.config/openstack" for file in $FILES_TO_CLEAN; do rm -rf $TOP_DIR/$file