mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-02-13 19:25:11 +08:00
19 lines
602 B
Bash
Executable File
19 lines
602 B
Bash
Executable File
#!/bin/ash
|
|
|
|
[ -n "${NEXTCLOUD_URL:?"WARN: NEXTCLOUD_URL is unset"}" ]
|
|
|
|
HPB_HOST="${HPB_HOST:-kube.internal.healthcheck}"
|
|
|
|
echo "Waiting Nextcloud [$NEXTCLOUD_URL] to be installed and ready. Sleeping for 3s..."
|
|
until curl -m 5 -k -s -H "Host: $HPB_HOST" "$NEXTCLOUD_URL/status.php" | grep -q '"installed":true'; do
|
|
echo "Waiting Nextcloud [$NEXTCLOUD_URL] to be installed and ready. Sleeping for 3s..."
|
|
sleep 3
|
|
done
|
|
echo "Nextcloud [$NEXTCLOUD_URL] replied, it is installed and ready. Starting Notify Push"
|
|
|
|
if [ -n "${CONFIG_FILE:-}" ]; then
|
|
notify_push "$CONFIG_FILE"
|
|
else
|
|
notify_push "$@"
|
|
fi
|