PYROS_DOCKER_UPDATE
483 Bytes
#!/usr/bin/env bash
# If no container is running Start it
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
# 1) Update Guitastro
echo "Updating Guitastro source code"
(cd ../vendor/guitastro/ ; git pull)
# 2) Update PyROS
echo "Updating PyROS source code"
git pull
# 3) pyros.py update => update BD + doc + Guitastro requirements
docker exec -it pyros python3 pyros.py update