mirror of
https://github.com/michelleDeko/scalelite-run.git
synced 2025-12-16 14:22:11 +01:00
19 lines
384 B
Bash
Executable File
19 lines
384 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
STATUS="Status: Downloaded newer image for blindsidenetwks/scalelite:latest"
|
|
|
|
new_status=$(sudo docker pull blindsidenetwks/scalelite:latest | grep Status:)
|
|
|
|
echo $new_status
|
|
|
|
if [ "$STATUS" == "$new_status" ]
|
|
then
|
|
cd $DIR/..
|
|
docker-compose down
|
|
docker rmi $(docker images -f dangling=true -q)
|
|
docker-compose up -d
|
|
fi
|
|
|
|
exit 0
|