/opt/couchbase/bin/erl \
-noinput -eval \
'case file:read_file("/opt/couchbase/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' \
-run init stop | grep cred
{rest_creds,
{creds,[{"Administrator",[{password,"Administrator"}]}]}]},
username : Administrator
password : Administrator
2 comments:
Nice! Thank you :D
shouldn't there be additional backslashes?
Post a Comment