xmrig-bash-scripts/depends.sh

24 lines
635 B
Bash
Raw Normal View History

2019-07-27 13:00:13 +03:00
#!/bin/bash
echo "#################################"
echo " INSTALLING DEPENDENCIES "
echo "#################################"
# Install the software requirements
if [ $_APT_DEPENDS = 1 ]; then
# 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
sudo apt install -y jo cpuid screen
2019-07-27 13:00:13 +03:00
else
2019-07-27 13:00:13 +03:00
echo "Depend install is set to NO ($_APT_DEPENDS) Skipping"
2019-07-27 13:00:13 +03:00
fi
echo "#################################"
echo " DEPENDENCIES INSTALLED "
echo "#################################"