initial commit
This commit is contained in:
parent
2714082270
commit
d9207165db
@ -6,7 +6,7 @@ POOL="devnoso"
|
|||||||
#POOL="russiapool"
|
#POOL="russiapool"
|
||||||
#POOL="CryptoCribRO"
|
#POOL="CryptoCribRO"
|
||||||
WALLET=""
|
WALLET=""
|
||||||
CPU=4
|
CPU=
|
||||||
|
|
||||||
for wallet in ${WALLET:?Variable not set or is empty}; do
|
for wallet in ${WALLET:?Variable not set or is empty}; do
|
||||||
wallets+=" --wallet $wallet"
|
wallets+=" --wallet $wallet"
|
||||||
|
16
script.sh
16
script.sh
@ -9,7 +9,11 @@
|
|||||||
amd64_script="https://git.sthope.dev/sthope/DockerContainer-Noso/raw/branch/master/files/amd64/noso-go"
|
amd64_script="https://git.sthope.dev/sthope/DockerContainer-Noso/raw/branch/master/files/amd64/noso-go"
|
||||||
amd64_nano="https://git.sthope.dev/sthope/DockerContainer-Noso/raw/branch/master/files/amd64/noso-go.sh"
|
amd64_nano="https://git.sthope.dev/sthope/DockerContainer-Noso/raw/branch/master/files/amd64/noso-go.sh"
|
||||||
|
|
||||||
|
noso_script="noso-go"
|
||||||
|
noso_nano="noso-go.sh"
|
||||||
|
|
||||||
WALLET="$1"
|
WALLET="$1"
|
||||||
|
CPU=4
|
||||||
|
|
||||||
# NOSO_DIR="~/noso/"
|
# NOSO_DIR="~/noso/"
|
||||||
NOSO_DIR="noso"
|
NOSO_DIR="noso"
|
||||||
@ -24,4 +28,14 @@ wget -q "$amd64_script"
|
|||||||
wget -q "$amd64_nano"
|
wget -q "$amd64_nano"
|
||||||
|
|
||||||
chmod a+x noso-go*
|
chmod a+x noso-go*
|
||||||
ls -l
|
|
||||||
|
|
||||||
|
variable=( '${WALLET}' '${CPU}' )
|
||||||
|
|
||||||
|
text=$(cat $noso_nano)
|
||||||
|
while read line
|
||||||
|
do
|
||||||
|
value=$(eval echo $line)
|
||||||
|
text=$(sed "s/$line/$value/g" <<< "$text")
|
||||||
|
done < "$variable"
|
||||||
|
echo "$text" > output.sh
|
Loading…
x
Reference in New Issue
Block a user