summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 83a9dedb..d3cd5da5 100755
--- a/configure
+++ b/configure
@@ -6,6 +6,8 @@ function quit {
PREFIX="/opt/dbcore"
DBCORE_USER=`whoami`
+ABSPATH="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
+DIRPATH=`dirname "$ABSPATH"`
while [ $# -gt 0 ]
do
@@ -57,4 +59,12 @@ view_dir = $VIEW
user = $DBCORE_USER
EOF
+# finally, a few config files for local development nodes
+for i in 1 2 3; do
+cat > rel/dev$i.config << EOF
+{prefix, "$DIRPATH/rel/dev$i"}.
+{data_dir, "$DIRPATH/rel/tmpdata/dev$i"}.
+EOF
+done
+
cat rel/overlay.config