Advertisement
Guest User

Untitled

a guest
Oct 12th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.99 KB | None | 0 0
  1. if (nodeCoin == "DASH")
  2.                     {
  3.                         using (var sshconnection = new SshClient(RemoteIP, order.ServerLogin, order.ServerPassword))
  4.                         {
  5.                             sshconnection.Connect();
  6.                             {
  7.                                 sshconnection.RunCommand("git clone https://www.github.com/dashpay/dash dash");
  8.                                 sshconnection.RunCommand("cd dash && git pull");
  9.                                 sshconnection.RunCommand("./autogen.sh && ./configure --with-incompatible-bdb --enable-hardening --without-gui");
  10.                                 sshconnection.RunCommand("strip dashd && strip dash-cli && strip dash-tx");
  11.                                 sshconnection.RunCommand("cp dashd ../.. && cp dash-cli ../.. && cp dash-tx ../..");
  12.                                 sshconnection.RunCommand("cd ../..");
  13.                                 sshconnection.RunCommand("./dashd");
  14.                                 sshconnection.RunCommand("echo server=1 >> .dash/dash.conf");
  15.                                 sshconnection.RunCommand("echo listen=1 >> .dash/dash.conf");
  16.                                 sshconnection.RunCommand("echo daemon=1 >> .dash/dash.conf");
  17.                                 sshconnection.RunCommand("echo rpcuser=" + remoteUser + " >> .dash/dash.conf");
  18.                                 sshconnection.RunCommand("echo rpcpassword=" + remotePass + " >> .dash/dash.conf");
  19.                                 sshconnection.RunCommand("echo rpcallow=192.168.137.55 >> .dash/dash.conf");
  20.                                 sshconnection.RunCommand("echo rpcallowip=192.168.137.55 >> .dash/dash.conf");
  21.                                 sshconnection.RunCommand("echo rpcconnect=192.168.137.55 >> .dash/dash.conf");
  22.  
  23.  
  24.                                 sshconnection.Disconnect();
  25.                                 sshconnection.Dispose();
  26.                             }
  27.                         }
  28.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement