Compare commits

..

3 Commits

2 changed files with 9 additions and 8 deletions

View File

@ -16,7 +16,7 @@ eval "$(fixuid -q)"
if [ "${HOME_USER-}" ]; then if [ "${HOME_USER-}" ]; then
USER="$HOME_USER" USER="$HOME_USER"
if [ "$HOME_USER" != "$(whoami)" ]; then if [ "$HOME_USER" != "$(whoami)" ]; then
if ! id -u $HOME_USER > /dev/null 2>&1; then # if ! id -u $HOME_USER > /dev/null 2>&1; then
# Create a user with the same UID as the host user. # Create a user with the same UID as the host user.
# sudo adduser --disabled-password --gecos "" ${HOME_USER} # sudo adduser --disabled-password --gecos "" ${HOME_USER}
# sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null # sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
@ -33,15 +33,16 @@ if [ "${HOME_USER-}" ]; then
# fi # fi
# Cambiar el directorio home del usuario vscode a /home/${HOME_USER} # Cambiar el directorio home del usuario vscode a /home/${HOME_USER}
sudo usermod -d /home/${HOME_USER} -m vscode # sudo usermod -d /home/${HOME_USER} -m vscode
sudo usermod -d /home/${HOME_USER} vscode
su - ${HOME_USER} su - ${HOME_USER}
fi # fi
# Copy environment variables from vscode user to HOME_USER # Copy environment variables from vscode user to HOME_USER
#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
#sudo -u $HOME_USER -i sudo -u $HOME_USER -i
# sudo cd /home/${HOME_USER} # sudo cd /home/${HOME_USER}
sudo chown -R ${HOME_USER}:${HOME_USER} /home/${HOME_USER} sudo chown -R ${HOME_USER}:${HOME_USER} /home/${HOME_USER}

2
version.txt Normal file → Executable file
View File

@ -1 +1 @@
2.0.18 2.0.21