From b33c4cbbe6eec6e500071c3935779c011492fd90 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 24 Apr 2024 12:47:13 -0600 Subject: [PATCH] Fixing permissions on .ssh directory. Update to version 3.1.1 --- entrypoint.sh | 4 +++- version.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a32473c..a181c01 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -77,7 +77,9 @@ if [ "$HOME_USER" != "$(whoami)" ]; then exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh" else sudo chown -R ${HOME_USER} /home/${HOME_USER} - sudo chmod -R 600 /home/${HOME_USER}/.ssh + if [ -d "/home/${HOME_USER}/.ssh" ]; then + sudo chmod -R 600 /home/${HOME_USER}/.ssh + fi fi # Move the .bashrc file to the user's home directory if it doesn't exist diff --git a/version.txt b/version.txt index a0cd9f0..50e47c8 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.1.0 \ No newline at end of file +3.1.1 \ No newline at end of file