You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2019/08/26 05:23:37 UTC

[couchdb-pkg] branch fix-buster updated (f558d01 -> 814a7b6)

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a change to branch fix-buster
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git.


 discard f558d01  fix etc/default.d/* ownership
     new 814a7b6  fix etc/default.d/* ownership

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (f558d01)
            \
             N -- N -- N   refs/heads/fix-buster (814a7b6)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/couchdb.postinst | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)


[couchdb-pkg] 01/01: fix etc/default.d/* ownership

Posted by wo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch fix-buster
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git

commit 814a7b66dbd4e9114cc510c6c83e45f0a961ef53
Author: Joan Touzet <wo...@apache.org>
AuthorDate: Sun Aug 25 21:55:45 2019 -0700

    fix etc/default.d/* ownership
---
 debian/couchdb.postinst | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/debian/couchdb.postinst b/debian/couchdb.postinst
index 3661125..e82b045 100644
--- a/debian/couchdb.postinst
+++ b/debian/couchdb.postinst
@@ -187,16 +187,22 @@ case $1 in
     esac
 
     # These should be owned by the couchdb user and group:
-    chown couchdb:couchdb /opt/couchdb/etc
-    chown couchdb:couchdb /opt/couchdb/etc/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/lib/couchdb
-    chown couchdb:couchdb /var/lib/couchdb/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/lib/couchdb/shards/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/lib/couchdb/shards/*/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/lib/couchdb/.shards/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/lib/couchdb/.shards/*/* >/dev/null 2>&1 || true
-    chown couchdb:couchdb /var/log/couchdb
-    chown couchdb:couchdb /var/log/couchdb/* >/dev/null 2>&1 || true
+    for i in "/opt/couchdb/etc
+      /opt/couchdb/etc/*
+      /opt/couchdb/etc/default.d/*
+      /opt/couchdb/etc/local.d/*
+      /var/lib/couchdb
+      /var/lib/couchdb/*
+      /var/lib/couchdb/shards/*
+      /var/lib/couchdb/shards/*/*
+      /var/lib/couchdb/.shards/*
+      /var/lib/couchdb/.shards/*/*
+      /var/log/couchdb
+      /var/log/couchdb/*"
+    do
+      chown couchdb:couchdb $i >/dev/null 2>&1 || true
+    done
+      
     # These should also not be world readable or writable:
     find /opt/couchdb/etc -name *.ini -exec chmod 0640 {} \;
     chmod a+x /opt/couchdb/bin/couchup