added new script

This commit is contained in:
Divyansh Bhardwaj 2022-04-12 23:14:32 +05:30
parent 230c77ca37
commit d9ebfb6ffb
2 changed files with 8 additions and 13 deletions

View File

@ -17,7 +17,7 @@ RUN apt-get install build-essential
RUN apt-get install autotools-dev autoconf -y
RUN apt-get install libcurl4 libcurl4-gnutls-dev -y
RUN apt-get install checkinstall
COPY start.sh .
COPY run.sh .
#Installing CPU-miner
@ -28,6 +28,6 @@ RUN CFLAGS="-march=native" ./configure
RUN make
CMD ["/cpuminer/start.sh"]
CMD ["/cpuminer/run.sh"]
#minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u <user>.<worker> -p <workerpassword>

17
run.sh
View File

@ -1,12 +1,7 @@
#!/bin/sh
#!/bin/bash
cd /cpuminer
echo "Username:-"
read USERNAME
echo "Worker:-"
read WORKER
echo "PASSWORD:-"
read PASS
sudo minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u $USERNAME.$WORKER -p $PASS
# Use Env variables in Config
## Change Network Config if needed
echo "Setup configs..."
minerd -o stratum+tcp://rm-pool.duckdns.org:3333 -a scrypt -u $USERNAME.$WORKER -p $PASS