From ad17fa0c55c4a73d11438b3ace08b72e95252fc8 Mon Sep 17 00:00:00 2001 From: Jordan Walster Date: Sat, 15 Feb 2025 10:34:06 +0000 Subject: [PATCH] fix: ensure .ssh folder permissions --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 5fa1feb..515ec94 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,6 +12,10 @@ echo "borg:$SSH_PASSWORD" | chpasswd echo "Setting file ownership" chown -R borg:borg /opt/borg +# Create ssh directory and ensure permissions +mkdir /home/borg/.ssh +chown borg:borg /home/borg/.ssh + # Set default login path to /opt/borg echo 'cd /opt/borg' >> /home/borg/.profile