From 471ca26b077dc4d9b8d709f51071e8fe66347540 Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Tue, 26 Sep 2017 14:18:53 +0200 Subject: Get rid of config file in post install. --- dist/post_install.sh | 22 ---------------------- vespabase/CMakeLists.txt | 4 ++++ vespabase/conf/default-env.txt.in | 2 ++ 3 files changed, 6 insertions(+), 22 deletions(-) create mode 100644 vespabase/conf/default-env.txt.in diff --git a/dist/post_install.sh b/dist/post_install.sh index fb0e19370ee..246fd1a6726 100755 --- a/dist/post_install.sh +++ b/dist/post_install.sh @@ -9,21 +9,6 @@ fi declare -r PREFIX="$1" declare -r INSTALLPATH="$DESTDIR/$PREFIX" -# Rewrite config def file names -for path in $INSTALLPATH/var/db/vespa/config_server/serverdb/classes/*.def; do - dir=$(dirname $path) - filename=$(basename $path) - namespace=$(grep '^ *namespace *=' $path | sed 's/ *namespace *= *//') - if [ "$namespace" ]; then - case $filename in - $namespace.*) - ;; - *) - mv $path $dir/$namespace.$filename ;; - esac - fi -done - mkdir -p $INSTALLPATH/conf/configserver/ mkdir -p $INSTALLPATH/conf/configserver-app/ mkdir -p $INSTALLPATH/conf/configserver-app/config-models/ @@ -67,10 +52,3 @@ ln -sf $PREFIX/lib/jars/zkfacade-jar-with-dependencies.jar $INSTALLPATH/conf/con ln -snf $PREFIX/conf/configserver-app/components $INSTALLPATH/lib/jars/config-models ln -sf vespa-storaged-bin $INSTALLPATH/sbin/vespa-distributord-bin -# Setup default enviroment -mkdir -p $INSTALLPATH/conf/vespa -cat > $INSTALLPATH/conf/vespa/default-env.txt <