mirror of
https://github.com/clearlinux/official-images.git
synced 2026-09-07 06:04:28 +00:00
This adjusts `nextcloud-apache-run` and `nextcloud-fpm-run` to try up to three times for a successful result, and adds a new `nextcloud-cli` test that combines the other three (`nextcloud-cli-mysql`, `nextcloud-cli-postgres`, and `nextcloud-cli-sqlite`) into a single test that will pass if any one of them passes (but does attempt to run all three every time). Also, account for change in the installation page (from "Finish setup" to "Install").
23 lines
443 B
Bash
Executable File
23 lines
443 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
# the nextcloud tests are very flaky, so the intent of this test is to make sure at least *one* of them is succeeding
|
|
|
|
dir="$(dirname "$BASH_SOURCE")"
|
|
tests="$(dirname "$dir")"
|
|
|
|
ret=1
|
|
for t in \
|
|
nextcloud-cli-mysql \
|
|
nextcloud-cli-postgres \
|
|
nextcloud-cli-sqlite \
|
|
; do
|
|
if "$tests/$t/run.sh" "$@"; then
|
|
ret=0
|
|
else
|
|
echo >&2 "note: '$t' failed (only fatal if all three do)"
|
|
fi
|
|
done
|
|
|
|
exit "$ret"
|