cozy / cozy-debian

Cozy Debian package
13 stars 4 forks source link

Improve CouchDB admin deletion #44

Closed clochix closed 6 years ago

clochix commented 7 years ago

The reset_token action require the couchdb user and password from /etc/cozy/couchdb.login. But if this file is lost or wrong, user has no way to drop CouchDB admin. We should add some sort of hard delete that delete admin from CouchDB configuration and restart the server. The best way to do this that I have found is:

for n in {1..10}; do sed -i -e '/^\[admins\]/{n;d}' /etc/couchdb/local.ini; done;
service couchdb restart
jsilvestre commented 7 years ago

You are right, thank you @clochix !

clochix commented 6 years ago

Closing, as this version of Cozy is now deprecated.