From 8a083f992d7afa26ae69527c7454e4e0d1f8eb72 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Fri, 29 Dec 2023 13:20:31 +0100 Subject: [PATCH] fix: Add leading zero --- plugin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.sh b/plugin.sh index a196bfa..708e83e 100644 --- a/plugin.sh +++ b/plugin.sh @@ -1,9 +1,9 @@ #!/bin/sh mkdir -p /root/.ssh -chmod 800 /root/.ssh +chmod 0800 /root/.ssh echo "${PLUGIN_SSH_KEY}" > "/root/.ssh/id_rsa" -chmod 600 /root/.ssh/id_rsa +chmod 0600 /root/.ssh/id_rsa echo "${PLUGIN_SSH_KNOWN_HOSTS}" > "/root/.ssh/known_hosts" -chmod 600 /root/.ssh/known_hosts +chmod 0600 /root/.ssh/known_hosts scp -B ${PLUGIN_EXTRA_FLAGS} ${PLUGIN_SOURCE} ${PLUGIN_DESTINATION} \ No newline at end of file