This commit is contained in:
Zachary Robert Thomas Boyd 2014-03-09 00:20:51 -05:00
parent 4bc7830a98
commit a6f06d156d
4 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,6 @@ export INSTALL=""
<?php foreach (explode(',', CHECK_INSTALL) as $install) { ?>
if [ ! -e /usr/bin/polipo ]; then
export INSTALL="$INSTALL <?php echo $install; ?>"
update-rc.d -f <?php echo $install; ?> remove
fi
<?php } ?>

View file

@ -5,7 +5,7 @@
define("INSTANCES", "10");
define("BALANCE_MODE", "roundrobin");
define("SOCKS_PORT", "9050");
define("CHECK_INSTALL", "polipo,haproxy,tor");
define("CHECK_INSTALL", "polipo,haproxy,tor,screen");
define("CACHE_DIR", "");
define("REMOTE_LOGGING_HOST", "");
define("PROXY_USERNAME", "da1b91ca-b548-48ab-8c42-a556dd95d2f0");

View file

@ -6,7 +6,7 @@ WAIT=1
echo "Updating Apt"
apt-get update;
echo "Installing prerequisites"
apt-get install -y -qq php5-cli unzip make uuid;
apt-get install -y -qq php5-cli unzip make uuid screen;
export UUID=$(uuid -v4)
echo "Downloading auto-configuration toolkit from $URL"
wget $URL -O /tmp/master.zip;
@ -17,4 +17,5 @@ echo "Setting new hostname"
echo "$UUID.tor-routers" > /etc/hostname;
echo "Hostname >>>$UUID.tor-routers<<<"
/usr/local/bin/check_install.sh
/sbin/reboot

View file

@ -1,4 +1,4 @@
<?php require('./config.php'); ?>
/usr/local/bin/check_install.sh
/usr/local/bin/start_router.sh
/usr/local/bin/tor-router-update.sh
screen -dmS tor_router /usr/local/bin/tor-router-update.sh