jefferbrecht commented on issue #4001:
URL: https://github.com/apache/couchdb/issues/4001#issuecomment-1104396938

   Thanks! I just found a workaround at the same time you commented, which is 
to change this line in `/opt/couchdb/etc/vm.args`:
   
   ```
   # -setcookie
   ```
   
   to
   
   ```
   -setcookie somestring
   ```
   
   I wasn't able to get `debconf-set-selections` to work either; it looked like 
the DEBIAN/config script in the package was always overwriting any preseeded 
values as long as that blank commented line existed in that file:
   
   ```bash
   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}" # <-- ${cookie} is blank here
     if [ "${nodename}" != "[email protected]" ]; then
       db_set couchdb/nodename "${nodename}"
     fi
   fi
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to