mirror of
				https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
				synced 2025-11-03 23:45:41 -06:00 
			
		
		
		
	Update permissions for SSH files and increment version number to 3.1.2
This commit is contained in:
		@@ -78,7 +78,18 @@ if [ "$HOME_USER" != "$(whoami)" ]; then
 | 
				
			|||||||
else
 | 
					else
 | 
				
			||||||
  sudo chown -R ${HOME_USER} /home/${HOME_USER}
 | 
					  sudo chown -R ${HOME_USER} /home/${HOME_USER}
 | 
				
			||||||
  if [ -d "/home/${HOME_USER}/.ssh" ]; then
 | 
					  if [ -d "/home/${HOME_USER}/.ssh" ]; then
 | 
				
			||||||
    sudo chmod -R 600 /home/${HOME_USER}/.ssh
 | 
					    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
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
3.1.1
 | 
					3.1.2
 | 
				
			||||||
		Reference in New Issue
	
	Block a user