This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch monstermunch in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git
commit cb9c142a965f2bd72e7ea4149fa67489f077b1ca Author: Robert Newson <[email protected]> AuthorDate: Wed Apr 20 20:43:29 2022 +0100 Fix cookie preseeding --- debian/couchdb.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/couchdb.config b/debian/couchdb.config index df9518c..e21d9e7 100755 --- a/debian/couchdb.config +++ b/debian/couchdb.config @@ -84,7 +84,9 @@ promptcookie() { if [ -e /opt/couchdb/etc/vm.args ] ; then cookie="$(grep '^-setcookie' /opt/couchdb/etc/vm.args | cut -d ' ' -f 2 | stripwhitespace)" nodename="$(grep '^-name' /opt/couchdb/etc/vm.args | cut -d ' ' -f 2 | stripwhitespace)" - db_set couchdb/cookie "${cookie}" + if [ -n "$cookie" ]; then + db_set couchdb/cookie "${cookie}" + fi if [ "${nodename}" != "[email protected]" ]; then db_set couchdb/nodename "${nodename}" fi
