_
This commit is contained in:
parent
864d54f2e7
commit
8158a8b39e
28
install.sh
28
install.sh
|
@ -3,16 +3,20 @@
|
||||||
URL=http://bit.ly/tor-router-zip
|
URL=http://bit.ly/tor-router-zip
|
||||||
WAIT=1
|
WAIT=1
|
||||||
|
|
||||||
echo "Updating Apt"
|
if [ ! -e /etc/update_checksum ]; then
|
||||||
apt-get update;
|
echo "Updating Apt"
|
||||||
echo "Installing prerequisites"
|
apt-get update;
|
||||||
apt-get install -y -qq php5-cli unzip make uuid screen;
|
echo "Installing prerequisites"
|
||||||
echo "Downloading auto-configuration toolkit from $URL"
|
apt-get install -y -qq php5-cli unzip make uuid screen;
|
||||||
wget $URL -O /tmp/master.zip;
|
echo "Downloading auto-configuration toolkit from $URL"
|
||||||
sha1sum /tmp/master.zip > /etc/update_checksum
|
wget $URL -O /tmp/master.zip;
|
||||||
cd /tmp && unzip ./master.zip;
|
sha1sum /tmp/master.zip > /etc/update_checksum
|
||||||
cd /tmp/tor-router-master && make && make install;
|
cd /tmp && unzip ./master.zip;
|
||||||
echo "Setting new hostname"
|
cd /tmp/tor-router-master && make && make install;
|
||||||
|
echo "Setting new hostname"
|
||||||
|
|
||||||
echo "Hostname >>>$(hostname -f)<<<"
|
echo "Hostname >>>$(hostname -f)<<<"
|
||||||
/sbin/reboot
|
/sbin/reboot
|
||||||
|
else
|
||||||
|
/usr/local/bin/tor-router-update.sh
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue