2022-06-26 15:09:51 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-11-19 17:16:31 +01:00
|
|
|
set -x
|
|
|
|
|
2022-06-26 15:09:51 +02:00
|
|
|
updates_available () {
|
|
|
|
docker pull $1
|
2022-11-19 17:16:31 +01:00
|
|
|
if test "$(docker run --rm $1 /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
|
2022-06-26 15:09:51 +02:00
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
if updates_available pommib/powerdns:4.4-bullseye; then
|
|
|
|
./debian/11/build.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
if updates_available pommib/powerdns:4.6-bookworm; then
|
|
|
|
./debian/12/build.sh
|
|
|
|
fi
|