瀏覽代碼

Directories

Bob Mottram 8 年之前
父節點
當前提交
b6abb5c7e6
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      src/freedombone-app-tahoelafs

+ 4
- 4
src/freedombone-app-tahoelafs 查看文件

41
 TAHOELAFS_ONION_PORT=8096
41
 TAHOELAFS_ONION_PORT=8096
42
 
42
 
43
 TAHOELAFS_SHARED_DIR='Shared'
43
 TAHOELAFS_SHARED_DIR='Shared'
44
-TAHOE_COMMAND="cd /var/lib/tahoelafs && venv/bin/tahoe"
44
+TAHOE_COMMAND="cd /home/tahoelafs/tahoelafs && venv/bin/tahoe"
45
 
45
 
46
 tahoelafs_variables=(ONION_ONLY
46
 tahoelafs_variables=(ONION_ONLY
47
                      TAHOELAFS_REPO
47
                      TAHOELAFS_REPO
201
     fi
201
     fi
202
 
202
 
203
     apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
203
     apt-get -yq install build-essential python-pip python-dev libffi-dev libssl-dev
204
-    apt-get -yq install libcrypto++-dev python-virtualenv
204
+    apt-get -yq install libcrypto++-dev python-pycryptopp python-cffi python-virtualenv
205
 
205
 
206
     # create a user to run the introducer
206
     # create a user to run the introducer
207
     if [ ! -d /home/tahoelafs ]; then
207
     if [ ! -d /home/tahoelafs ]; then
222
     git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
222
     git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
223
     git submodule update --init --recursive
223
     git submodule update --init --recursive
224
     virtualenv venv
224
     virtualenv venv
225
-    venv/bin/pip install six packaging appdirs pycrypto==2.1.0
225
+    venv/bin/pip install six packaging appdirs pycrypto==2.1.0 cryptography==1.3.4
226
     venv/bin/pip install --editable .
226
     venv/bin/pip install --editable .
227
     configure_firewall_for_tahoelafs
227
     configure_firewall_for_tahoelafs
228
 
228
 
247
     echo 'Type=simple' >> $TAHOELAFS_DAEMON_FILE
247
     echo 'Type=simple' >> $TAHOELAFS_DAEMON_FILE
248
     echo "User=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
248
     echo "User=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
249
     echo "Group=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
249
     echo "Group=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
250
-    echo "WorkingDirectory=/home/tahoelafs" >> $TAHOELAFS_DAEMON_FILE
250
+    echo "WorkingDirectory=/home/tahoelafs/tahoelafs" >> $TAHOELAFS_DAEMON_FILE
251
     echo "ExecStart=venv/bin/tahoe start /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
251
     echo "ExecStart=venv/bin/tahoe start /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
252
     echo "ExecStop=venv/bin/tahoe stop /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
252
     echo "ExecStop=venv/bin/tahoe stop /home/tahoelafs/.tahoe-introducer" >> $TAHOELAFS_DAEMON_FILE
253
     echo 'Restart=on-failure' >> $TAHOELAFS_DAEMON_FILE
253
     echo 'Restart=on-failure' >> $TAHOELAFS_DAEMON_FILE