mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
390f9cdc15
|
|||
f9503fe827
|
|||
c50b9e969f
|
@ -33,6 +33,13 @@ if [ "${HOME_USER-}" ]; then
|
||||
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
|
||||
done
|
||||
|
||||
# Copy the PATH variable from vscode user to HOME_USER
|
||||
#PATH_LINE=$(grep "^PATH=" /home/vscode/.bashrc)
|
||||
#sudo su - ${HOME_USER} -c "echo '${PATH_LINE}' >> ~/.bashrc"
|
||||
|
||||
# Copy the .bashrc file from vscode user to HOME_USER
|
||||
sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc"
|
||||
|
||||
# Changing the property of the directory /home/${HOME_USER}
|
||||
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/
|
||||
|
||||
@ -40,7 +47,6 @@ if [ "${HOME_USER-}" ]; then
|
||||
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.
|
||||
# sudo -u $HOME_USER -i
|
||||
sudo su -l ${HOME_USER}
|
||||
fi
|
||||
fi
|
||||
|
@ -1 +1 @@
|
||||
2.0.35
|
||||
2.0.38
|
Reference in New Issue
Block a user