#!/usr/bin/env bash # if no container is running if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] then echo "db_pyros or pyros weren't running, starting them..." ./PYROS_DOCKER_START.bat fi # Update source code # - GuitastroGuitastro echo "Updating Guitastro source code" (cd ../vendor/guitastro/ ; git pull) # - PyROS echo "Updating PyROS source code" git pull # Update BD, doc, ... docker exec -it pyros python3 pyros.py update