2023-12-29 10:33:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mkdir -p /root/.ssh
|
2023-12-29 12:17:17 +00:00
|
|
|
chmod 800 /root/.ssh
|
2023-12-29 10:33:01 +00:00
|
|
|
echo "${PLUGIN_SSH_KEY}" > "/root/.ssh/id_rsa"
|
2023-12-29 12:17:17 +00:00
|
|
|
chmod 600 /root/.ssh/id_rsa
|
2023-12-29 10:33:01 +00:00
|
|
|
echo "${PLUGIN_SSH_KNOWN_HOSTS}" > "/root/.ssh/known_hosts"
|
2023-12-29 12:17:17 +00:00
|
|
|
chmod 600 /root/.ssh/known_hosts
|
2023-12-29 10:33:01 +00:00
|
|
|
scp -B ${PLUGIN_EXTRA_FLAGS} ${PLUGIN_SOURCE} ${PLUGIN_DESTINATION}
|