2019-07-27 03:12:28 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Get settings
|
|
|
|
. settings.sh
|
2019-07-27 13:00:13 +03:00
|
|
|
. functions.sh
|
2019-07-27 03:12:28 +03:00
|
|
|
sleep 5
|
|
|
|
|
|
|
|
# Stop running instance
|
|
|
|
. stop.sh
|
|
|
|
|
2019-07-27 13:00:13 +03:00
|
|
|
# Update system
|
|
|
|
. maintenance.sh
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
. depends.sh
|
|
|
|
sleep 5
|
|
|
|
|
2019-07-27 03:12:28 +03:00
|
|
|
# Get source and build by sourcing our build file
|
|
|
|
. build.sh
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
# Setup crontab for user
|
|
|
|
. crontab.sh
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
# Unset REPO variable so start script will execute program
|
|
|
|
SCREEN=""
|
|
|
|
|
|
|
|
# Start mining
|
|
|
|
. start.sh
|
|
|
|
|
|
|
|
|
|
|
|
echo "####################################"
|
|
|
|
echo "# ALL DONE - INSTALLATION COMPLETE #"
|
|
|
|
echo "####################################"
|