#!/usr/bin/env bash # PRE-CONDITION : pyros container must be running # If no container is running Start it if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 4 ] then echo "pyros-db or pyros weren't running, starting them..." ./PYROS_DOCKER_START #./PYROS_DOCKER_START.bat fi # 1) Update Guitastro echo "Updating Guitastro source code" (cd ../vendor/guitastro/ ; git pull) # 2) Update PyROS echo "Updating PyROS source code" git pull # 3) Update all observatories with git repo for dir in ../../PYROS_OBSERVATORY/* ; do if [ -d .git ] ; then echo "Updating observatory $dir source code" git pull fi done # 3) pyros.py update => update BD + doc + Guitastro requirements docker compose exec pyros python3 pyros.py update