the /etc/openstack directory needs to be removed with sudo privs,
the loop at the end will not suffice.
Change-Id: Icc0ac45f9216d538ca214176d90241f973a4687b
| ... | ... |
@@ -104,7 +104,7 @@ if is_service_enabled nova && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; th |
| 104 | 104 |
fi |
| 105 | 105 |
|
| 106 | 106 |
# Clean out /etc |
| 107 |
-sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/heat /etc/neutron |
|
| 107 |
+sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/heat /etc/neutron /etc/openstack/ |
|
| 108 | 108 |
|
| 109 | 109 |
# Clean out tgt |
| 110 | 110 |
sudo rm -f /etc/tgt/conf.d/* |
| ... | ... |
@@ -136,8 +136,8 @@ rm -rf $DIRS_TO_CLEAN |
| 136 | 136 |
FILES_TO_CLEAN=".localrc.auto .localrc.password " |
| 137 | 137 |
FILES_TO_CLEAN+="docs/files docs/html shocco/ " |
| 138 | 138 |
FILES_TO_CLEAN+="stack-screenrc test*.conf* test.ini* " |
| 139 |
-FILES_TO_CLEAN+=".stackenv .prereqs" |
|
| 140 |
-FILES_TO_CLEAN+="/etc/openstack/ ~/.config/openstack" |
|
| 139 |
+FILES_TO_CLEAN+=".stackenv .prereqs " |
|
| 140 |
+FILES_TO_CLEAN+="~/.config/openstack" |
|
| 141 | 141 |
|
| 142 | 142 |
for file in $FILES_TO_CLEAN; do |
| 143 | 143 |
rm -rf $TOP_DIR/$file |