basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.94k stars 536 forks source link

riak 3.x `riak chkconfig` command returns non-zero on success #1125

Open tburghart opened 1 year ago

tburghart commented 1 year ago

Per the relx extension script contract, extension scripts should exit with an appropriate result code.

riak/rel/files/riak-chkconfig does not do this (the two other extension scripts do), and therefore picks up the non-zero exit provided by the relx-generated bin/riak script.

The solution is to add the following (or something like it) to the end of the rel/files/riak-chkconfig file:

--- a/rel/files/riak-chkconfig
+++ b/rel/files/riak-chkconfig
@@ ...

 echo $CUTTLE_CONF
+
+# No explicit exit from within script or tools, assumed to have succeeded.
+exit 0