diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -5,7 +5,6 @@ function quit { } PREFIX="/opt" -TEMPLATE="production" DATA="/srv/db" VIEW="/srv/view_index" DBCORE_USER=`whoami` @@ -41,9 +40,21 @@ do esac done +echo "==> configuring dbcore in rel/overlay.config" +cat > rel/overlay.config << EOF +{prefix, "$PREFIX"}. +{core_dir, "$PREFIX/dbcore"}. +{data_dir, "$DATA"}. +{view_dir, "$VIEW"}. +{user, "$DBCORE_USER"}. +EOF -echo "configuring dbcore" +cat > install.mk << EOF +# The contents of this file are auto-generated by configure +prefix = $PREFIX +data_dir = $DATA +view_dir = $VIEW +user = $DBCORE_USER +EOF -rm -f rebar.config -# dbcore template -./rebar create template=$TEMPLATE prefix=$PREFIX data_dir=$DATA view_dir=$VIEW user=$DBCORE_USER force=1 +cat rel/overlay.config |