couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [1/2] git commit: init.d: Only chown when COUCHDB_USER is not empty.
Date Sun, 06 May 2012 12:13:22 GMT
Updated Branches:
  refs/heads/1.2.x 30334ac87 -> de328ed4f
  refs/heads/master a1d46acba -> 7d540c6e6


init.d: Only chown when COUCHDB_USER is not empty.


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

Branch: refs/heads/1.2.x
Commit: de328ed4ffebcd3888f25473d9203d49c78eb5f5
Parents: 30334ac
Author: Jan Lehnardt <jan@apache.org>
Authored: Sun May 6 14:09:13 2012 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun May 6 14:11:01 2012 +0200

----------------------------------------------------------------------
 etc/init/couchdb.tpl.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/de328ed4/etc/init/couchdb.tpl.in
----------------------------------------------------------------------
diff --git a/etc/init/couchdb.tpl.in b/etc/init/couchdb.tpl.in
index 173efa3..39b6250 100644
--- a/etc/init/couchdb.tpl.in
+++ b/etc/init/couchdb.tpl.in
@@ -84,7 +84,9 @@ start_couchdb () {
     # Start Apache CouchDB as a background process.
 
     mkdir -p "$RUN_DIR"
-    chown $COUCHDB_USER "$RUN_DIR"
+    if test -n "$COUCHDB_USER"; then
+        chown $COUCHDB_USER "$RUN_DIR"
+    fi
     command="$COUCHDB -b"
     if test -n "$COUCHDB_STDOUT_FILE"; then
         command="$command -o $COUCHDB_STDOUT_FILE"


Mime
View raw message