Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (nodeCoin == "DASH")
- {
- using (var sshconnection = new SshClient(RemoteIP, order.ServerLogin, order.ServerPassword))
- {
- sshconnection.Connect();
- {
- sshconnection.RunCommand("git clone https://www.github.com/dashpay/dash dash");
- sshconnection.RunCommand("cd dash && git pull");
- sshconnection.RunCommand("./autogen.sh && ./configure --with-incompatible-bdb --enable-hardening --without-gui");
- sshconnection.RunCommand("strip dashd && strip dash-cli && strip dash-tx");
- sshconnection.RunCommand("cp dashd ../.. && cp dash-cli ../.. && cp dash-tx ../..");
- sshconnection.RunCommand("cd ../..");
- sshconnection.RunCommand("./dashd");
- sshconnection.RunCommand("echo server=1 >> .dash/dash.conf");
- sshconnection.RunCommand("echo listen=1 >> .dash/dash.conf");
- sshconnection.RunCommand("echo daemon=1 >> .dash/dash.conf");
- sshconnection.RunCommand("echo rpcuser=" + remoteUser + " >> .dash/dash.conf");
- sshconnection.RunCommand("echo rpcpassword=" + remotePass + " >> .dash/dash.conf");
- sshconnection.RunCommand("echo rpcallow=192.168.137.55 >> .dash/dash.conf");
- sshconnection.RunCommand("echo rpcallowip=192.168.137.55 >> .dash/dash.conf");
- sshconnection.RunCommand("echo rpcconnect=192.168.137.55 >> .dash/dash.conf");
- sshconnection.Disconnect();
- sshconnection.Dispose();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement