Make new configuration directory from config
authorDennis Schafroth <dennis@schafroth.com>
Fri, 29 Nov 2013 13:44:37 +0000 (14:44 +0100)
committerDennis Schafroth <dennis@schafroth.com>
Fri, 29 Nov 2013 13:44:37 +0000 (14:44 +0100)
scripts/make_new_config.sh [new file with mode: 0755]

diff --git a/scripts/make_new_config.sh b/scripts/make_new_config.sh
new file mode 100755 (executable)
index 0000000..034e15c
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash 
+
+INSTALL_PATH=`pwd`
+CONFIG=$1
+mkdir -p ${CONFIG}
+ln -s ${INSTALL_PATH}/etc ${CONFIG}/
+ln -s ${INSTALL_PATH}/contexts ${CONFIG}/
+ln -s ${INSTALL_PATH}/lib ${CONFIG}/
+ln -s ${INSTALL_PATH}/webapps ${CONFIG}/
+ln -s ${INSTALL_PATH}/resources ${CONFIG}/
+ln -s ${INSTALL_PATH}/start.jar ${CONFIG}/
+ln -s ${INSTALL_PATH}/zookeeper.sh ${CONFIG}/
+cp -rp ${INSTALL_PATH}/solr ${CONFIG}/
+mkdir -p ${CONFIG}/logs
\ No newline at end of file