Compare commits

..

3 Commits

2 changed files with 12 additions and 4 deletions

View File

@ -39,8 +39,16 @@ if [ "${HOME_USER-}" ]; then
# Copy the .bashrc file from vscode user to HOME_USER # Copy the .bashrc file from vscode user to HOME_USER
sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc" sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc"
# Creating .vscode folder if it doesn't exist
if [ ! -d "/home/${HOME_USER}/.vscode" ]; then
sudo mkdir -p /home/${HOME_USER}/.vscode
fi
# Changing the property of the directory /home/${HOME_USER}/.vscode
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
# Changing the HOME_USER in the .bashrc file # Changing the HOME_USER in the .bashrc file
sudo su - ${HOME_USER} -c 'sudo sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc' sudo su - ${HOME_USER} -c "sudo 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 su -l ${HOME_USER} sudo su -l ${HOME_USER}
@ -90,7 +98,7 @@ else
fi fi
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
sudo su - ${HOME_USER} -c "sudo code tunnel --accept-server-license-terms" sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms"
else else
sudo su - ${HOME_USER} -c "sudo code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}" sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
fi fi

View File

@ -1 +1 @@
2.0.43 2.0.46