Directories
This commit is contained in:
parent
fa0eba1108
commit
b6abb5c7e6
@ -41,7 +41,7 @@ TAHOELAFS_PORT=50213
|
|||||||
TAHOELAFS_ONION_PORT=8096
|
TAHOELAFS_ONION_PORT=8096
|
||||||
|
|
||||||
TAHOELAFS_SHARED_DIR='Shared'
|
TAHOELAFS_SHARED_DIR='Shared'
|
||||||
TAHOE_COMMAND="cd /var/lib/tahoelafs && venv/bin/tahoe"
|
TAHOE_COMMAND="cd /home/tahoelafs/tahoelafs && venv/bin/tahoe"
|
||||||
|
|
||||||
tahoelafs_variables=(ONION_ONLY
|
tahoelafs_variables=(ONION_ONLY
|
||||||
TAHOELAFS_REPO
|
TAHOELAFS_REPO
|
||||||
@ -201,7 +201,7 @@ function install_tahoelafs {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
|
apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
|
||||||
apt-get -yq install libcrypto++-dev python-virtualenv
|
apt-get -yq install libcrypto++-dev python-pycryptopp python-cffi python-virtualenv
|
||||||
|
|
||||||
# create a user to run the introducer
|
# create a user to run the introducer
|
||||||
if [ ! -d /home/tahoelafs ]; then
|
if [ ! -d /home/tahoelafs ]; then
|
||||||
@ -222,7 +222,7 @@ function install_tahoelafs {
|
|||||||
git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
|
git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
virtualenv venv
|
virtualenv venv
|
||||||
venv/bin/pip install six packaging appdirs pycrypto==2.1.0
|
venv/bin/pip install six packaging appdirs pycrypto==2.1.0 cryptography==1.3.4
|
||||||
venv/bin/pip install --editable .
|
venv/bin/pip install --editable .
|
||||||
configure_firewall_for_tahoelafs
|
configure_firewall_for_tahoelafs
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ function install_tahoelafs {
|
|||||||
echo 'Type=simple' >> $TAHOELAFS_DAEMON_FILE
|
echo 'Type=simple' >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo "User=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
echo "User=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo "Group=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
echo "Group=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo "WorkingDirectory=/home/tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
echo "WorkingDirectory=/home/tahoelafs/tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo "ExecStart=venv/bin/tahoe start /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
|
echo "ExecStart=venv/bin/tahoe start /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo "ExecStop=venv/bin/tahoe stop /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
|
echo "ExecStop=venv/bin/tahoe stop /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
|
||||||
echo 'Restart=on-failure' >> $TAHOELAFS_DAEMON_FILE
|
echo 'Restart=on-failure' >> $TAHOELAFS_DAEMON_FILE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user