Browse Source

Remove directories

Bob Mottram 8 years ago
parent
commit
9ecbd11ff1
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      src/freedombone-app-tahoelafs

+ 5
- 4
src/freedombone-app-tahoelafs View File

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 --distribute
224
     virtualenv venv --distribute
225
-    venv/bin/pip uninstall setuptools
225
+    venv/bin/pip uninstall --yes setuptools
226
     venv/bin/pip install setuptools==11.3
226
     venv/bin/pip install setuptools==11.3
227
     venv/bin/pip install six==1.10.0 packaging==16.8 attrs==16.3.0 appdirs==1.4.2 pycrypto==2.1.0 cffi==1.9.1
227
     venv/bin/pip install six==1.10.0 packaging==16.8 attrs==16.3.0 appdirs==1.4.2 pycrypto==2.1.0 cffi==1.9.1
228
     venv/bin/pip install cryptography==1.7.2 markerlib==0.6.0 distribute==0.7.3
228
     venv/bin/pip install cryptography==1.7.2 markerlib==0.6.0 distribute==0.7.3
229
     venv/bin/pip install --editable .
229
     venv/bin/pip install --editable .
230
     configure_firewall_for_tahoelafs
230
     configure_firewall_for_tahoelafs
231
 
231
 
232
-    if [ ! -d /home/tahoelafs/data ]; then
233
-        mkdir /home/tahoelafs/data
232
+    if [ -d /home/tahoelafs/data ]; then
233
+        rm -rf /home/tahoelafs/data
234
     fi
234
     fi
235
+    mkdir /home/tahoelafs/data
235
 
236
 
236
     # remove files we don't need
237
     # remove files we don't need
237
-    rm /home/tahoelafs/.mutt
238
+    rm -rf /home/tahoelafs/.mutt
238
     rm /home/tahoelafs/.emacs-mutt
239
     rm /home/tahoelafs/.emacs-mutt
239
     rm /home/tahoelafs/.muttrc
240
     rm /home/tahoelafs/.muttrc
240
     rm /home/tahoelafs/.mutt-alias
241
     rm /home/tahoelafs/.mutt-alias