~tardypad/alpine-system

c693d7d6bde91ca85d923468562197c68a6fb7ec — Damien Tardy-Panis 4 months ago dae82f5
utilities: add more config for rsync usage to chestnut within container
1 files changed, 11 insertions(+), 0 deletions(-)

M utilities/setup-container
M utilities/setup-container => utilities/setup-container +11 -0
@@ 54,9 54,20 @@ lxc config device add "${CONTAINER_NAME}" ssh-agent proxy \
  mode=0600 \
  security.uid=1000 \
  security.gid=1000

# rsync usage to chestnut
cat << EOF | lxc exec "${CONTAINER_NAME}" -- /bin/sh
  apk add openssh rsync
  echo 'export SSH_AUTH_SOCK=/home/damien/.ssh-agent.sock' > /home/damien/.profile
  chown damien:damien /home/damien/.profile
  mkdir /home/damien/.ssh
  cat <<- EOF2 > /home/damien/.ssh/config
		Host chestnut
		    Hostname tardypad.me
		    User damien
		    Port 11235
EOF2
  chown -R damien:damien /home/damien/.ssh
EOF

lxc restart "${CONTAINER_NAME}"