greenlight-2.14.4/scripts/deploy.sh
2023-02-13 23:17:00 +08:00

18 lines
373 B
Bash
Executable File

#!/bin/bash
STATUS="Status: Downloaded newer image for bigbluebutton/greenlight:v2"
new_status=$(sudo docker pull bigbluebutton/greenlight:v2 | grep Status:)
echo $new_status
if [ "$STATUS" == "$new_status" ]
then
cd /home/ubuntu/greenlight
sudo docker-compose down
sudo docker rmi $(sudo docker images -f dangling=true -q)
sudo docker-compose up -d
fi
exit 0