summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2017-11-10 09:24:05 +0100
committerHarald Musum <musum@oath.com>2017-11-10 09:24:05 +0100
commitf3a05db48e9c74bb34d6a1677ba7ea6c49ce75a1 (patch)
treef637433c8edd89b40730c80957133fa586f90080 /configserver
parentc324bc8ee6474ad5f951f7220bd2ee7f8291fb76 (diff)
Remove handling of directories that are not in use anymore
Diffstat (limited to 'configserver')
-rwxr-xr-xconfigserver/src/main/sh/vespa-configserver-remove-state11
1 files changed, 2 insertions, 9 deletions
diff --git a/configserver/src/main/sh/vespa-configserver-remove-state b/configserver/src/main/sh/vespa-configserver-remove-state
index 404f0f89a53..c781fcb0c0d 100755
--- a/configserver/src/main/sh/vespa-configserver-remove-state
+++ b/configserver/src/main/sh/vespa-configserver-remove-state
@@ -75,14 +75,12 @@ usage() {
sudo="sudo"
ask=true
remove_zookeeper_dir=true
-remove_applications_dir=true
remove_tenants_dir=true
confirmed=true
zookeeper_dir=var/zookeeper
-applications_dir=var/db/vespa/config_server/serverdb/applications
tenants_dir=var/db/vespa/config_server/serverdb/tenants
-if [ -w $applications_dir ] && [ -w $zookeeper_dir ]; then
+if [ -w $zookeeper_dir ]; then
sudo=""
fi
@@ -123,9 +121,8 @@ confirm() {
}
garbage_collect_dirs() {
- find $zookeeper_dir $applications_dir -type d -depth 2>/dev/null | while read dir; do
+ find $zookeeper_dir $tenants_dir -type d -depth 2>/dev/null | while read dir; do
[ "$dir" = "$zookeeper_dir" ] && continue
- [ "$dir" = "$applications_dir" ] && continue
$sudo rmdir "$dir" 2>/dev/null
done
}
@@ -148,10 +145,6 @@ if $remove_zookeeper_dir && [ -d $zookeeper_dir ]; then
confirm_and_clean_dir $zookeeper_dir
fi
-if $remove_applications_dir && [ -d $applications_dir ]; then
- confirm_and_clean_dir $applications_dir
-fi
-
if $remove_tenants_dir && [ -d $tenants_dir ]; then
confirm_and_clean_dir $tenants_dir
fi