martiell commented on PR #184:
URL: https://github.com/apache/couchdb-pkg/pull/184#issuecomment-2764220236

   Yes, it would. And there's another problem I hadn't thought of: the nouveau 
postinst would write the configuration file, but couchdb would have already 
been started from its own postinst script, which Pre-Depends would force to run 
first. So couchdb would be running with it disabled, until it was manually 
restarted.
   
   The solution I suggested in #154 was to only try to change the owner of the 
file if the couchdb user already existed, because the couchdb postinst would 
then fix up the permissions if it gets installed.
   
   The only other option I could think of (aside from just removing the 
automated configuration altogether) was to create the couchdb user if it didn't 
already exist from the nouveau postinst, so the owner could be set correctly. 
But then the code for creating the couchdb user would then be duplicated across 
both postinst scripts.
   
   On the other hand, all these feel a bit fragile, so I do see the argument 
for just removing the automated configuration.


-- 
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: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to