2019-07-27 13:00:13 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "#################################"
|
|
|
|
echo " INSTALLING DEPENDENCIES "
|
|
|
|
echo "#################################"
|
|
|
|
|
|
|
|
# Install the software requirements
|
|
|
|
|
|
|
|
if [ $_APT_DEPENDS = 1 ]; then
|
2019-07-30 16:00:55 +03:00
|
|
|
|
|
|
|
# Install xmrig depends
|
|
|
|
sudo apt install -y software-properties-common git build-essential cmake libuv1-dev libssl-dev libmicrohttpd-dev libhwloc-dev gcc g++
|
|
|
|
|
2019-07-29 15:01:07 +03:00
|
|
|
# Install xmrig-bash-scripts depends
|
2019-07-30 16:00:55 +03:00
|
|
|
sudo apt install -y jo cpuid screen
|
2019-07-27 13:00:13 +03:00
|
|
|
else
|
2019-07-30 16:00:55 +03:00
|
|
|
|
2019-07-27 13:00:13 +03:00
|
|
|
echo "Depend install is set to NO ($_APT_DEPENDS) Skipping"
|
2019-07-30 16:00:55 +03:00
|
|
|
|
2019-07-27 13:00:13 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "#################################"
|
|
|
|
echo " DEPENDENCIES INSTALLED "
|
|
|
|
echo "#################################"
|