From 64e751da2d10977bb217eafe01348fbbb53c6ddb Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov Date: Fri, 18 Feb 2022 17:28:16 +0300 Subject: [PATCH] s --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index f4f39da..5f7037e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,6 +7,10 @@ die() { exit 1 } +test -n "$OPENWRT_SSH_CONFIG" && echo "$OPENWRT_SSH_CONFIG" > /opt/config +test -n "$OPENWRT_SSH_KEY" && echo "$OPENWRT_SSH_KEY" > /opt/id_rsa +test -n "$OPENWRT_SSH_KNOWN_HOSTS" && echo "$OPENWRT_SSH_KNOWN_HOSTS" > /opt/known_hosts + rsync -a /opt/ /home/openwrt/.ssh/ || die "Couldn't rsync user ssh settings" chown -R openwrt:openwrt /home/openwrt/.ssh || die "Couldn't change ownership for user ssh settings" chmod -R a-rwx,u+rwX /home/openwrt/.ssh || die "Couldn't change access rights for user ssh settings" -- GitLab