Skip to content
Snippets Groups Projects
Commit 97260274 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Merge branch 's' into 'master'

s

See merge request docker/git-rsync-to-openwrt!1
parents 71530909 eeab3d67
Branches
No related tags found
1 merge request!1s
Pipeline #5188 passed
...@@ -7,6 +7,10 @@ die() { ...@@ -7,6 +7,10 @@ die() {
exit 1 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" 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" 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" chmod -R a-rwx,u+rwX /home/openwrt/.ssh || die "Couldn't change access rights for user ssh settings"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment