#!/bin/bash USER=nas HOST=172.22.160.165 install_update_triskele(){ git clone http://git.normalized.xyz/Florent/Triskele.git #2> /dev/null cd Triskele git pull make -f MakefileNoOTB -j 8 apGenerator cd python sudo pip install . cd ../.. } install_update_ld2dap(){ git clone http://git.normalized.xyz/Florent/LD2DAPs.git #2> /dev/null cd LD2DAPs git pull sudo pip install . cd .. } update() { git pull origin master mkdir -p modules cd modules install_update_triskele install_update_ld2dap cd .. } mount(){ mkdir -p Enrichment sshfs $USER@$HOST:Enrichment Enrichment mkdir -p Data sshfs $USER@$HOST:Data Data } main(){ update mount echo Ready } main