#!/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:-seaweedfs}" "${PACKAGE_VERSION:-}" <<'SCRIPT' set -e cp "/repo/${ALPINE_ARCH}"/*.rsa.pub /etc/apk/keys/ printf "%s\n" /repo >> /etc/apk/repositories apk update apk add seaweedfs \ seaweedfs-master-openrc \ seaweedfs-volume-openrc \ seaweedfs-filer-openrc test -x /usr/bin/weed test -d /etc/seaweedfs test -f /etc/seaweedfs/master.toml test -f /etc/seaweedfs/filer.toml test -f /etc/conf.d/seaweedfs.master test -f /etc/conf.d/seaweedfs.volume test -f /etc/conf.d/seaweedfs.filer test -f /etc/init.d/seaweedfs.master test -f /etc/init.d/seaweedfs.volume test -f /etc/init.d/seaweedfs.filer weed version rc-update add seaweedfs.master default rc-update add seaweedfs.volume default rc-update add seaweedfs.filer default test -L /etc/runlevels/default/seaweedfs.master test -L /etc/runlevels/default/seaweedfs.volume test -L /etc/runlevels/default/seaweedfs.filer apk add seaweedfs-doc bash-completion apk info -e seaweedfs-bash-completion test -d /usr/share/doc/seaweedfs/examples test -f /usr/share/doc/seaweedfs/examples/master.toml test -f /usr/share/bash-completion/completions/weed SCRIPT