dustin
/
jenkinsagent
Archived
1
0
Fork 0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
jenkinsagent/rootfs/overlay/usr/libexec/fetch-ssh-knownhosts.sh

9 lines
267 B
Bash
Executable File

#!/bin/sh
: "${KNOWN_HOSTS_URL=https://files.pyrocufflink.blue/ssh_known_hosts}"
curl -fsSL -o /run/ssh_known_hosts "${KNOWN_HOSTS_URL}" || exit $?
if ! mountpoint -q /etc/ssh/ssh_known_hosts; then
mount -o bind /run/ssh_known_hosts /etc/ssh/ssh_known_hosts
fi