Build Alpine Packages / preflight (pull_request) Successful in 7s
Build Alpine Packages / build (gitea) (pull_request) Successful in 3s
Build Alpine Packages / build (greptimedb) (pull_request) Successful in 3s
Build Alpine Packages / build (lavinmq) (pull_request) Successful in 4s
Build Alpine Packages / build (nifi) (pull_request) Successful in 3s
Build Alpine Packages / build (rclone-openrc) (pull_request) Successful in 9s
Build Alpine Packages / build (seaweedfs) (pull_request) Successful in 3s
Build Alpine Packages / verify-and-publish (pull_request) Successful in 27s
Build Alpine Packages / preflight (push) Failing after 5s
Build Alpine Packages / build (gitea) (push) Skipped
Build Alpine Packages / build (greptimedb) (push) Skipped
Build Alpine Packages / build (lavinmq) (push) Skipped
Build Alpine Packages / build (nifi) (push) Skipped
Build Alpine Packages / build (rclone-openrc) (push) Skipped
Build Alpine Packages / build (seaweedfs) (push) Skipped
Build Alpine Packages / verify-and-publish (push) Skipped
Reviewed-on: #21
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/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:-rclone-openrc}" "${PACKAGE_VERSION:-}" <<'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}"
|
|
|
|
test -x /usr/bin/rclone
|
|
test -f /etc/conf.d/rclone
|
|
test -f /etc/init.d/rclone
|
|
test -d /etc/rclone
|
|
test "$(stat -c '%U:%G %a' /etc/rclone)" = "root:rclone 750"
|
|
test "$(stat -c '%U:%G %a' /var/lib/rclone/cache)" = "rclone:rclone 750"
|
|
|
|
cp /etc/conf.d/rclone /etc/conf.d/rclone.sftp
|
|
ln -s rclone /etc/init.d/rclone.sftp
|
|
rc-update add rclone.sftp default
|
|
test -L /etc/runlevels/default/rclone.sftp
|
|
SCRIPT
|