#!/usr/bin/env bash set -euo pipefail repo_root="${REPO_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../.." && pwd)}" # shellcheck source=scripts/apk/test-install-lib.sh . "${repo_root}/scripts/apk/test-install-lib.sh" apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-nifi}" "${PACKAGE_VERSION:-2.12.0-r0}" <<'SCRIPT' set -e if [ -n "${ALPINE_REPOSITORY_URL}" ]; then if [ -n "${ALPINE_REPOSITORY_KEY_URL}" ]; then apk add --no-cache curl >/dev/null cd /etc/apk/keys curl -fsSLOJ "${ALPINE_REPOSITORY_KEY_URL}" fi printf "%s\n" "${ALPINE_REPOSITORY_URL}" >> /etc/apk/repositories else cp "/repo/${ALPINE_ARCH}"/*.rsa.pub /etc/apk/keys/ printf "%s\n" /repo >> /etc/apk/repositories fi apk update apk add "${PACKAGE_NAME}" "${PACKAGE_NAME}-doc" "${PACKAGE_NAME}-openrc" test -x /usr/bin/nifi test -x /usr/lib/nifi/bin/nifi.sh test -d /etc/nifi test -L /usr/lib/nifi/conf test "$(readlink /usr/lib/nifi/conf)" = /etc/nifi test -d /var/lib/nifi test -d /var/log/nifi test -f /etc/init.d/nifi test -f /etc/conf.d/nifi test -d /usr/share/doc/nifi test "$(stat -c '%U:%G %a' /var/lib/nifi)" = "nifi:nifi 750" rc-update add nifi default test -L /etc/runlevels/default/nifi SCRIPT