2020-05-26 20:09:02 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
if [ -z $RESTARTED ]
|
|
|
|
then
|
|
|
|
|
|
|
|
echo "# pull newest bigblugbutton-docker.git"
|
2020-06-06 14:39:31 +02:00
|
|
|
git pull
|
2020-05-26 20:09:02 +02:00
|
|
|
|
|
|
|
# restart script, since it might have changed.
|
|
|
|
RESTARTED=1 ./scripts/upgrade
|
2021-02-11 15:33:49 +01:00
|
|
|
exit
|
2020-05-26 20:09:02 +02:00
|
|
|
|
|
|
|
else
|
2020-07-30 12:11:34 +02:00
|
|
|
|
2021-02-11 15:33:49 +01:00
|
|
|
echo ""
|
|
|
|
echo "# recreate docker-compose.yml"
|
|
|
|
./scripts/generate-compose
|
2020-05-26 20:09:02 +02:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "# pull newest images"
|
2023-05-07 11:07:09 +02:00
|
|
|
docker compose pull --ignore-pull-failures
|
2022-05-08 20:40:34 +02:00
|
|
|
|
2020-05-26 20:09:02 +02:00
|
|
|
|
|
|
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
|
|
|
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
|
2022-05-08 20:40:34 +02:00
|
|
|
|
2020-05-26 20:09:02 +02:00
|
|
|
echo ""
|
|
|
|
echo "-------------------------------------"
|
2022-05-08 20:40:34 +02:00
|
|
|
echo "update is ready!"
|
2020-05-26 20:09:02 +02:00
|
|
|
echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
|
|
|
|
echo ""
|
2021-02-11 15:33:49 +01:00
|
|
|
echo "use following command for restarting bbb:"
|
2023-05-07 11:07:09 +02:00
|
|
|
echo " $ docker compose up -d --no-build"
|
2020-05-26 20:09:02 +02:00
|
|
|
echo "-------------------------------------"
|
|
|
|
fi
|