_
This commit is contained in:
parent
4bc7830a98
commit
a6f06d156d
|
@ -5,7 +5,6 @@ export INSTALL=""
|
||||||
<?php foreach (explode(',', CHECK_INSTALL) as $install) { ?>
|
<?php foreach (explode(',', CHECK_INSTALL) as $install) { ?>
|
||||||
if [ ! -e /usr/bin/polipo ]; then
|
if [ ! -e /usr/bin/polipo ]; then
|
||||||
export INSTALL="$INSTALL <?php echo $install; ?>"
|
export INSTALL="$INSTALL <?php echo $install; ?>"
|
||||||
update-rc.d -f <?php echo $install; ?> remove
|
|
||||||
fi
|
fi
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
define("INSTANCES", "10");
|
define("INSTANCES", "10");
|
||||||
define("BALANCE_MODE", "roundrobin");
|
define("BALANCE_MODE", "roundrobin");
|
||||||
define("SOCKS_PORT", "9050");
|
define("SOCKS_PORT", "9050");
|
||||||
define("CHECK_INSTALL", "polipo,haproxy,tor");
|
define("CHECK_INSTALL", "polipo,haproxy,tor,screen");
|
||||||
define("CACHE_DIR", "");
|
define("CACHE_DIR", "");
|
||||||
define("REMOTE_LOGGING_HOST", "");
|
define("REMOTE_LOGGING_HOST", "");
|
||||||
define("PROXY_USERNAME", "da1b91ca-b548-48ab-8c42-a556dd95d2f0");
|
define("PROXY_USERNAME", "da1b91ca-b548-48ab-8c42-a556dd95d2f0");
|
||||||
|
|
|
@ -6,7 +6,7 @@ WAIT=1
|
||||||
echo "Updating Apt"
|
echo "Updating Apt"
|
||||||
apt-get update;
|
apt-get update;
|
||||||
echo "Installing prerequisites"
|
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)
|
export UUID=$(uuid -v4)
|
||||||
echo "Downloading auto-configuration toolkit from $URL"
|
echo "Downloading auto-configuration toolkit from $URL"
|
||||||
wget $URL -O /tmp/master.zip;
|
wget $URL -O /tmp/master.zip;
|
||||||
|
@ -17,4 +17,5 @@ echo "Setting new hostname"
|
||||||
echo "$UUID.tor-routers" > /etc/hostname;
|
echo "$UUID.tor-routers" > /etc/hostname;
|
||||||
|
|
||||||
echo "Hostname >>>$UUID.tor-routers<<<"
|
echo "Hostname >>>$UUID.tor-routers<<<"
|
||||||
|
/usr/local/bin/check_install.sh
|
||||||
/sbin/reboot
|
/sbin/reboot
|
|
@ -1,4 +1,4 @@
|
||||||
<?php require('./config.php'); ?>
|
<?php require('./config.php'); ?>
|
||||||
/usr/local/bin/check_install.sh
|
/usr/local/bin/check_install.sh
|
||||||
/usr/local/bin/start_router.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
|
Loading…
Reference in a new issue