Fork of https://github.com/bigbluebutton/greenlight with Debian packaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
greenlight/scripts/deploy.sh

17 lines
373 B

#!/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