Compare commits

..

4 Commits

3 changed files with 16 additions and 3 deletions

View File

@ -27,4 +27,4 @@ jobs:
context: . context: .
push: true push: true
tags: aleleba/vscode:latest tags: aleleba/vscode:latest
platforms: linux/arm64 platforms: linux/amd64,linux/arm64

View File

@ -77,7 +77,20 @@ if [ "$HOME_USER" != "$(whoami)" ]; then
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh" exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
else else
sudo chown -R ${HOME_USER} /home/${HOME_USER} 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 755 /home/${HOME_USER}/.ssh
sudo chmod -R 600 /home/${HOME_USER}/.ssh/*
# Check if any .pub files exist in the .ssh directory
for file in /home/${HOME_USER}/.ssh/*.pub; do
if [ -f "$file" ]; then
sudo chmod 644 "$file"
fi
done
# Check if the known_hosts file exists in the .ssh directory
if [ -f "/home/${HOME_USER}/.ssh/known_hosts" ]; then
sudo chmod 644 /home/${HOME_USER}/.ssh/known_hosts
fi
fi
fi fi
# Move the .bashrc file to the user's home directory if it doesn't exist # Move the .bashrc file to the user's home directory if it doesn't exist

View File

@ -1 +1 @@
3.0.40 3.1.3