summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorevoskuil <eric@voskuil.org>2014-01-23 10:49:53 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-03-17 14:08:49 (GMT)
commit8b471077b79c0cd92ee4c49aa95a2c96a6eb63bd (patch)
tree2464f963ad8c719f27cfda263ffcfa0ab19dbbaf
parent98c0e95c03522f69a90b64b4915540164428fba8 (diff)
Update comments and message text to make it clear to the user and developer that setup.sh *requires* that dependencies are installed and configured in default paths (as defined by install-sx.sh).
-rw-r--r--scripts/setup.sh27
1 files changed, 16 insertions, 11 deletions
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 97bc750..67a8bb0 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -1,23 +1,28 @@
#!/bin/bash
#
-# Designed for a fairly Debian standard.
+# Script to setup obworker and obbalancer daemons, required for an Obelisk node.
#
-# Compatible with Fedora standard too.
-#
-# Debian | Fedora
+# For Debian, Ubuntu or Fedora GNU/Linux distributions.
#
-# Script to setup obworker an obbalancer daemons.
+# Requires sudo.
#
-# Requires previous instalation of libbitcoin, libwallet and obelisk.
+# Requires previous installation of libbitcoin, libwallet and obelisk IN DEFAULT LOCATIONS.
# Download and execute the install-sx.sh:
# <wget http://sx.dyne.org/install-sx.sh>
# And run:
# <sudo bash install-sx.sh>
-# If you are setting up a oblisk node you need to run this script to create and configure
-# obworker and obbalancer daemons.
#
-#
+# To execute this script, run:
+# <sudo bash setup.sh>
+#
+#
set -e
+echo
+echo " [+] Welcome to Obelisk worker and balancer daemon setup."
+echo " IMPORTANT: This script requires previous installation of"
+echo " libbitcoin, libwallet and obelisk IN DEFAULT LOCATIONS."
+echo
+sleep 0.3
if [ `id -u` = "0" ]; then
SOURCE=/usr/local/src/obelisk-git/scripts
WORKER=/etc/obelisk/worker.cfg
@@ -49,13 +54,13 @@ config_logfiles(){
else
echo " ERROR: --> You need to have installed libbitcoin, sx and obelisk before run this script."
echo " Read the header of this script:"
- echo " <cat /user/local/src/obelist-git/scripts/setup.sh>"
+ echo " <cat $SOURCE/setup.sh>"
echo
fi
}
config_logrotate(){
- ln -sf $SOURCE/logrotate.sh /etc/logrotate.d/logrotate.sh
+ ln -sf $SOURCE/logrotate.sh /etc/logrotate.d/
}
up_limits(){