Skip to content

Commit

Permalink
fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jul 18, 2022
1 parent caadb35 commit afde321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyroengine/pi_utils/update_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ CID=$(docker ps | grep server_web | awk '{print $1}')
if [ `git -C /home/pi/pyro-engine pull origin master | grep -c "up to date."` -ne 1 ];
then
echo "pyro-engine updated from github";
cd /home/pi/pyro-engine/server/;
cd /home/pi/pyro-engine/runner/;
docker kill CID;
echo "rebuild docker";
PORT=8002 docker-compose up -d --build;
docker-compose up -d --build;
else
echo "pyro-engine up to date";
fi;

0 comments on commit afde321

Please sign in to comment.