diff --git a/Dockerfile b/Dockerfile index f0758b5..015b7cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,7 @@ RUN sed -ie 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh RUN sed -ie 's|#HostKey /etc/ssh/ssh_host_rsa_key|HostKey /sshkeys/host/ssh_host_rsa_key|g' /etc/ssh/sshd_config RUN sed -ie 's|#HostKey /etc/ssh/ssh_host_ecdsa_key|HostKey /sshkeys/host/ssh_host_ecdsa_key|g' /etc/ssh/sshd_config RUN sed -ie 's|#HostKey /etc/ssh/ssh_host_ed25519_key|HostKey /sshkeys/host/ssh_host_ed25519_key|g' /etc/ssh/sshd_config +RUN sed -ie 's|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd EXPOSE 22 ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/bash-config/.bashrc b/bash-config/.bashrc index ce2dbe2..cac01c3 100644 --- a/bash-config/.bashrc +++ b/bash-config/.bashrc @@ -89,7 +89,7 @@ function print_container_info { # Run Code ############################################################################################################################## if [ "$INTERACTIVE_MODE" != "false" ]; then - find_borg_repo backups/ + find_borg_repo /backups/ export BORG_REPO="${repo_list[selected_repo]}" if [ ! -z "$BORG_REPO" ]; then ask_for_repo_password