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