anchor.diff:  -include("onepanel_modules/installer/internals.hrl").
   -include_lib("ctool/include/logging.hrl").
   
  +-define(COUCHBASE_PASSWORD, "lkj4n2klfsd90uchn1kadk290").
  +
   %% install_behaviour callbacks
   -export([install/1, uninstall/1, start/1, stop/1, restart/1, commit/1]).
   
   %% API
  --export([local_start/0, local_stop/0, join_cluster/1, local_commit/0]).
  +-export([local_start/0, local_stop/0, join_cluster/1, local_commit/0, init_cluster/1]).
   
   %% Defines how many times onepanel will try to verify database node start
   -define(FINALIZE_START_ATTEMPTS, 10).
  
positive.code:             _ -> ok
          end,
  
          "0" = os:cmd("riak-admin cluster join " ++ ?DB_NAME ++ "@" ++ ClusterHost
              ++ " 1>/dev/null 2>&1 ; echo -n $?"),
          ok = wait_until("riak-admin ring_status", "Ring Ready:\s*true"),
  
          {ok, Host}
      catch
  
negative.code:         ok = installer_utils:overwrite_config_args(?DB_CONFIG,
              <<"listener.protobuf.internal = ">>, <<"[^\n]*">>, <<"0.0.0.0:8087">>),
  
          "0" = os:cmd("/etc/init.d/couchbase start 1>/dev/null 2>&1 ; echo -n $?"),
          ok = wait_until("/etc/init.d/couchbase status 1>/dev/null 2>&1 ; echo -n $?", "0"),
  
          {ok, Host}
      catch
  