mirror of
				https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
				synced 2025-11-03 23:45:41 -06:00 
			
		
		
		
	Trying to fix user PATH issue. Updating to version 2.0.36
This commit is contained in:
		@@ -32,6 +32,12 @@ if [ "${HOME_USER-}" ]; then
 | 
				
			|||||||
    env | grep -v 'HOME_USER' | while read -r line; do
 | 
					    env | grep -v 'HOME_USER' | while read -r line; do
 | 
				
			||||||
      sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
 | 
					      sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
 | 
				
			||||||
    done
 | 
					    done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Get the PATH of vscode user
 | 
				
			||||||
 | 
					    VSCODE_PATH=$(sudo -u vscode -i echo $PATH)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Add the PATH to the .bashrc of HOME_USER
 | 
				
			||||||
 | 
					    sudo su - ${HOME_USER} -c "echo 'export PATH=$VSCODE_PATH' >> ~/.bashrc"
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    # Changing the property of the directory /home/${HOME_USER}
 | 
					    # Changing the property of the directory /home/${HOME_USER}
 | 
				
			||||||
    sudo chown -R ${HOME_USER}: /home/${HOME_USER}/
 | 
					    sudo chown -R ${HOME_USER}: /home/${HOME_USER}/
 | 
				
			||||||
@@ -40,8 +46,7 @@ if [ "${HOME_USER-}" ]; then
 | 
				
			|||||||
    sudo su - ${HOME_USER} -c 'sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc'
 | 
					    sudo su - ${HOME_USER} -c 'sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Switch to the user specified by $HOME_USER and start an interactive shell session.
 | 
					    # Switch to the user specified by $HOME_USER and start an interactive shell session.
 | 
				
			||||||
    # sudo -u $HOME_USER -i
 | 
					    sudo -u $HOME_USER -i
 | 
				
			||||||
    sudo su -l ${HOME_USER}
 | 
					 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
2.0.35
 | 
					2.0.36
 | 
				
			||||||
		Reference in New Issue
	
	Block a user