forked from madMAx43v3r/mmx-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
executable file
·29 lines (22 loc) · 965 Bytes
/
Copy pathdocker-entrypoint.sh
File metadata and controls
executable file
·29 lines (22 loc) · 965 Bytes
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
#!/bin/bash
if [ "${MMX_NETWORK_OVERRIDE}" ]; then
echo "${MMX_NETWORK_OVERRIDE}" > "${MMX_HOME}NETWORK"
fi
source ./activate.sh
config_path="${MMX_HOME}config/local/"
if [[ "${MMX_ALLOW_REMOTE}" == "true" ]]; then
echo true > "${config_path}allow_remote" && echo "*** Remote Access Enabled ***"
elif [[ "${MMX_ALLOW_REMOTE}" == "false" ]]; then
echo false > "${config_path}allow_remote" && echo "*** Remote Access Disabled ***"
fi
if [[ "${MMX_HARVESTER_ENABLED}" == "true" ]]; then
echo true > "${config_path}harvester" && echo "*** Harvester Enabled ***"
elif [[ "${MMX_HARVESTER_ENABLED}" == "false" ]]; then
echo false > "${config_path}harvester" && echo "*** Harvester Disabled ***"
fi
if [[ "${MMX_FARMER_ENABLED}" == "true" ]]; then
echo true > "${config_path}farmer" && echo "*** Farmer Enabled ***"
elif [[ "${MMX_FARMER_ENABLED}" == "false" ]]; then
echo false > "${config_path}farmer" && echo "*** Farmer Disabled ***"
fi
exec "$@"