You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/12/12 17:47:15 UTC
[GitHub] [couchdb] adrienverge edited a comment on issue #2293: Allow
override of `-couch_ini` parameter
adrienverge edited a comment on issue #2293: Allow override of `-couch_ini` parameter
URL: https://github.com/apache/couchdb/pull/2293#issuecomment-565102983
@wohali thanks for your answer, and valuable feedback.
I've updated the pull request to avoid even passing `-couch_ini` if the env var is unset, so that the command-line args really stay the same in the default case. I've also updated the commit message accordingly.
```diff
@@ -31,10 +31,10 @@ export COUCHDB_QUERY_SERVER_COFFEESCRIPT="{{prefix}}/bin/couchjs {{prefix}}/shar
export COUCHDB_FAUXTON_DOCROOT={{fauxton_root}}
ARGS_FILE="${COUCHDB_ARGS_FILE:-$ROOTDIR/etc/vm.args}"
-INI_FILES=${COUCHDB_INI_FILES:-}
+[ -n "${COUCHDB_INI_FILES:-}" ] && INI_ARGS="-couch_ini $COUCHDB_INI_FILES"
SYSCONFIG_FILE="${COUCHDB_SYSCONFIG_FILE:-$ROOTDIR/releases/$APP_VSN/sys.config}"
exec "$BINDIR/erlexec" -boot "$ROOTDIR/releases/$APP_VSN/couchdb" \
-args_file "${ARGS_FILE}" \
- -couch_ini ${INI_FILES} \
+ ${INI_ARGS:-} \
-config "${SYSCONFIG_FILE}" "$@"
```
Do you think it's OK?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services