apache / couchdb-pkg

Apache CouchDB Packaging support files
https://github.com/apache/couchdb-pkg
Apache License 2.0
29 stars 30 forks source link

Fix snap unset #131

Closed sklassen closed 10 months ago

sklassen commented 10 months ago

Overview

snap set couchdb name=xxxx corrupts vm.args.

Since needing to handle # - setcookie the commented # -name=examples are also caught by regex.

Testing recommendations

Tested twice with when vm.args

# -cookie -cookie xxxx

sudo snap set couchdb-sklassen setcookie=cutter sudo snap set couchdb-sklassen name=couchdb1@127.0.0.1

Related Pull Requests

Handle the commented and not commented vm.arg changes separately.

I have also unset the variables after config changes. This speeds up snap set as previously set variables no longer requires changing the file a second time.

Checklist