Fixes from the second Supermarket run: database versions, health host

The rerun found Supermarket needs PostgreSQL 18 while the Core runs 17.6,
which nothing had shown. The skill now gives the version and says to
check the app's; coreapp status shows the Core's PostgreSQL/MariaDB
version. Deploy's health check sends the app's Host, as traefik does; a
same-version deploy says so. The skill covers making the owner at
startup, building settings in the app's config loader, and checking mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 18:50:23 -07:00
co-authored by Claude Opus 5.5
parent dca8837487
commit b178b6964e
5 changed files with 78 additions and 13 deletions
+8
View File
@@ -319,6 +319,14 @@ cmd_status() {
address="$(core "sed -n 's/^INTERNAL_IP=//p' /federated/services/$NAME/service 2> /dev/null || true")"
[[ -z "$address" ]] || echo "Address on the Core: $address, port $PORT"
echo "Needs: ${NEEDS:-nothing}"
# The Core's database servers (shared by its apps), for apps that need a
# given version
if [[ " $NEEDS " == *" postgres "* ]]; then
echo "The Core's PostgreSQL: $(core "docker exec postgresql postgres --version 2> /dev/null | sed -n 's/^postgres (PostgreSQL) \([^ ]*\).*/\1/p'")"
fi
if [[ " $NEEDS " == *" mysql "* ]]; then
echo "The Core's MariaDB: $(core "docker exec pdnsmysql mariadb --version 2> /dev/null | sed -n 's/.* \([0-9][0-9.]*\)-MariaDB.*/\1/p'")"
fi
echo "URL: https://$NAME.$domain/"
}