Merge "use sudo to remove /etc/openstack directory"

This commit is contained in:
Jenkins 2016-01-22 03:53:39 +00:00 committed by Gerrit Code Review
commit be8ac25f84

View File

@ -104,7 +104,7 @@ if is_service_enabled nova && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; th
fi fi
# Clean out /etc # 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 # Clean out tgt
sudo rm -f /etc/tgt/conf.d/* sudo rm -f /etc/tgt/conf.d/*
@ -137,7 +137,7 @@ FILES_TO_CLEAN=".localrc.auto .localrc.password "
FILES_TO_CLEAN+="docs/files docs/html shocco/ " FILES_TO_CLEAN+="docs/files docs/html shocco/ "
FILES_TO_CLEAN+="stack-screenrc test*.conf* test.ini* " FILES_TO_CLEAN+="stack-screenrc test*.conf* test.ini* "
FILES_TO_CLEAN+=".stackenv .prereqs " FILES_TO_CLEAN+=".stackenv .prereqs "
FILES_TO_CLEAN+="/etc/openstack/ ~/.config/openstack" FILES_TO_CLEAN+="~/.config/openstack"
for file in $FILES_TO_CLEAN; do for file in $FILES_TO_CLEAN; do
rm -rf $TOP_DIR/$file rm -rf $TOP_DIR/$file