#!/bin/sh # rsync plugin # # ENVIRONMENT VARIABLES: # URL URL to download known_hosts file from # SIGURL URL of the OpenPGP signature # KEYRING path to the OpenPGP keyring with certificates # set -e ln -f current new || true rsync -vt --timeout=300 "${URL}" new if [ "${SIGURL}" ]; then rsync -vt --timeout=300 "${SIGURL}" new.sig if command -v sopv >/dev/null; then sopv verify new.sig "${KEYRING}"