1
0
docker-apache2-itk/rebuild.sh

17 lines
295 B
Bash
Raw Normal View History

2022-10-20 13:42:52 +02:00
#!/bin/sh
set +x
2022-10-20 13:42:52 +02:00
updates_available () {
docker pull "$1"
if test "$(docker run --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
2022-10-20 13:42:52 +02:00
return 0
else
return 1
fi
}
if updates_available pommib/apache2-itk:latest; then
./build.sh
fi