WIP on setup.sh

This commit is contained in:
Florent Guiotte 2018-09-19 11:19:58 +02:00
parent 14e1d92c68
commit 147b9fd317
2 changed files with 49 additions and 0 deletions

3
run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
python supervisor.py

46
setup.sh Executable file
View File

@ -0,0 +1,46 @@
#!/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