-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstart
executable file
·46 lines (39 loc) · 971 Bytes
/
start
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
42
43
44
45
46
#!/bin/bash
#
# Start mm2
#
# @author webworker01
#
scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $scriptpath/main
cd ${scriptpath}/coins
git pull
cp ${scriptpath}/coins/coins "${mmpath}coins"
cat <<EOF > ${mmpath}/MM2.json
{
"gui": "mmtools",
"netid": ${netid},
"rpc_password": "${userpass}",
"passphrase": "${passphrase}",
"userhome": "/${HOME#\"/\"}"
}
EOF
cd ${mmpath}
./mm2 update_config ${mmpath}coins ${mmpath}coins &
./mm2 &
sleep 7
if (( automation > 0 )); then
for enable_coin in ${auto_enable[@]}; do
if [[ "${default_coin_mode}" == "electrum" ]]; then
$scriptpath/electrum $enable_coin
elif [[ "${default_coin_mode}" == "daemon" ]]; then
$scriptpath/enable $enable_coin
fi
done
$scriptpath/coins_needed_for_kick_start
fi
if (( mpm_enable > 0 )); then
export userpass=${userpass}
cd ${scriptpath}/cipimmtools
git pull
fi