Browse Source

Cleanup the config file on ./clean.sh

When users unstack and clean on devstack, the old config files
should be removed to avoid potential issues. As a result, users
will get a fresh new install on the next ./stack.sh

Change-Id: Ifd89dd7528d63a5e92dc9f02e939810c8fa2a247
Hongbin Lu 9 months ago
parent
commit
450e29d1ce
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      devstack/plugin.sh

+ 4
- 0
devstack/plugin.sh View File

@@ -159,6 +159,10 @@ if is_service_enabled kuryr-libnetwork; then
159 159
             stop_process kuryr-libnetwork
160 160
         fi
161 161
     fi
162
+
163
+    if [[ "$1" == "clean" ]]; then
164
+        sudo rm -rf $KURYR_CONFIG_DIR
165
+    fi
162 166
 fi
163 167
 
164 168
 # Restore xtrace

Loading…
Cancel
Save