couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject couchdb commit: updated refs/heads/set-hostname-during-configure to 3153c6c
Date Wed, 09 Sep 2015 16:23:41 GMT
Repository: couchdb
Updated Branches:
  refs/heads/set-hostname-during-configure [created] 3153c6ce0


set -name to `hostname` during ./configure

Note that `hostname` is not a good / portable way to determine the
FQDN of a host, but this shows how it can be intergrated into
./configure until we find the right shell incantation to get
this running.

CC @wohali, we should look into the Windows side here as well.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3153c6ce
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3153c6ce
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3153c6ce

Branch: refs/heads/set-hostname-during-configure
Commit: 3153c6ce011f22f019984b2537eb2d827050d6d4
Parents: 71fb2b8
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Sep 9 18:21:57 2015 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Sep 9 18:22:37 2015 +0200

----------------------------------------------------------------------
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3153c6ce/configure
----------------------------------------------------------------------
diff --git a/configure b/configure
index 1c2c30d..e7edd90 100755
--- a/configure
+++ b/configure
@@ -556,7 +556,7 @@ fi
 
 INSTALLDIR=$LIBDIR/couchdb
 LOG_FILE=$LOGDIR/couch.log
-
+FQDN=`hostname`
 
 echo "==> configuring couchdb in rel/couchdb.config"
 cat > rel/couchdb.config << EOF
@@ -581,7 +581,7 @@ cat > rel/couchdb.config << EOF
 {log_file, "$LOG_FILE"}.
 {fauxton_root, "$DATAROOTDIR/couchdb/www"}.
 {user, "$COUCHDB_USER"}.
-{node_name, "-name couchdb"}.
+{node_name, "-name $FQDN"}.
 {cluster_port, 5984}.
 {backend_port, 5986}.
 EOF


Mime
View raw message