diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2015-10-15 16:08:45 +0300 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2015-10-15 16:08:45 +0300 |
commit | 70606667c60bfc3196defe86056a5eb77841dfd5 (patch) | |
tree | 7d3cfc985250f43a92ca6a0df35a8ca0709c05d2 /ejabberdctl.template | |
parent | 7d99484859df7c33a73da92d84b5cb5bd27a244e (diff) |
Use OTP directory structure for 'make install'
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-x | ejabberdctl.template | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index ea29fa289..f90f71e53 100755 --- a/ejabberdctl.template +++ b/ejabberdctl.template @@ -15,6 +15,7 @@ ERL={{erl}} IEX={{bindir}}/iex EPMD={{bindir}}/epmd INSTALLUSER={{installuser}} +ERL_LIBS={{libdir}} # check the proper system user is used if defined if [ "$INSTALLUSER" != "" ] ; then @@ -87,21 +88,12 @@ if [ "{{release}}" != "true" ] ; then if [ "$EJABBERDDIR" = "" ] ; then EJABBERDDIR={{libdir}}/ejabberd fi - if [ "$EJABBERD_EBIN_PATH" = "" ] ; then - EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin - fi if [ "$EJABBERD_PRIV_PATH" = "" ] ; then EJABBERD_PRIV_PATH=$EJABBERDDIR/priv fi if [ "$EJABBERD_BIN_PATH" = "" ] ; then EJABBERD_BIN_PATH=$EJABBERD_PRIV_PATH/bin fi - if [ "$EJABBERD_SO_PATH" = "" ] ; then - EJABBERD_SO_PATH=$EJABBERD_PRIV_PATH/lib - fi - if [ "$EJABBERD_MSGS_PATH" = "" ] ; then - EJABBERD_MSGS_PATH=$EJABBERD_PRIV_PATH/msgs - fi fi EJABBERD_LOG_PATH=$LOGS_DIR/ejabberd.log DATETIME=`date "+%Y%m%d-%H%M%S"` @@ -154,9 +146,7 @@ cd $SPOOL_DIR # export global variables export EJABBERD_CONFIG_PATH -export EJABBERD_MSGS_PATH export EJABBERD_LOG_PATH -export EJABBERD_SO_PATH export EJABBERD_BIN_PATH export EJABBERD_DOC_PATH export EJABBERD_PID_PATH @@ -166,6 +156,7 @@ export ERL_INETRC export ERL_MAX_PORTS export ERL_MAX_ETS_TABLES export CONTRIB_MODULES_PATH +export ERL_LIBS # start server start() |