-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupdaterMini.sh
41 lines (35 loc) · 1.61 KB
/
updaterMini.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
rm -rf exorde*
rm -rf c1.sh*
rm -rf stuck.sh*
rm -rf copyFile.sh*
rm -rf createScreenMini.sh*
rm -rf log.sh*
rm -rf swap.sh.*
rm -rf updater.sh.*
wget https://raw.githubusercontent.com/zainantum/checker/main/log.sh && chmod 777 log.sh && wget https://raw.githubusercontent.com/zainantum/checker/main/c1.sh && chmod 777 c1.sh && wget https://raw.githubusercontent.com/zainantum/checker/main/stuck.sh && chmod 777 stuck.sh && wget https://raw.githubusercontent.com/zainantum/checker/main/createScreenMini.sh && chmod 777 createScreenMini.sh && wget https://raw.githubusercontent.com/zainantum/checker/main/swap.sh && chmod 777 swap.sh && wget https://raw.githubusercontent.com/zainantum/checker/main/copyFile.sh && chmod 777 copyFile.sh
read -p "Enter address for workers: " mainAddress
echo 'export mainAddress='$mainAddress >> $HOME/.bash_profile
read -p "Enter maximum worker do you want: " maxWorker
echo 'export maxWorker='$maxWorker >> $HOME/.bash_profile
source $HOME/.bash_profile
wget https://github.com/exorde-labs/ExordeModuleCLI/archive/refs/heads/main.zip \
--output-document=ExordeModuleCLI.zip \
&& unzip ExordeModuleCLI.zip \
&& rm ExordeModuleCLI.zip \
&& mv ExordeModuleCLI-main exorde
for (( i=1; i<=$maxWorker; i++ ))
do
name="exorde"$i
echo "copy folder to $name"
cp -r exorde $name
sleep 1
done
for (( i=1; i<=$maxWorker; i++ ))
do
name="exorde"$i
echo "create screen $name"
screen -dm $name
sleep 2
screen -r $name -X stuff 'cd '${name}' && source ~/miniconda3/etc/profile.d/conda.sh && conda activate exorde-env && python Launcher.py -m '${mainAddress}' -l 3'`echo -ne '\015'`
done