Compare commits

..

3 Commits

2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ done
USER="$HOME_USER" USER="$HOME_USER"
if ! id -u $HOME_USER > /dev/null 2>&1; then if ! id -u $HOME_USER > /dev/null 2>&1; then
sudo adduser --disabled-password --gecos "" ${HOME_USER} sudo adduser --disabled-password --gecos "" --uid 1000 ${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
# Check if the .bashrc file exists, if not, create it # Check if the .bashrc file exists, if not, create it
@ -69,12 +69,14 @@ if ! id -u $HOME_USER > /dev/null 2>&1; then
fi fi
# Changing the property of the directory /home/${HOME_USER}/.vscode # Changing the property of the directory /home/${HOME_USER}/.vscode
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode sudo chown -R ${HOME_USER} /home/${HOME_USER}/.vscode
fi fi
# Then execute entrypoint.sh # Then execute entrypoint.sh
if [ "$HOME_USER" != "$(whoami)" ]; then if [ "$HOME_USER" != "$(whoami)" ]; then
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh" exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
else
sudo chown -R 1000 /home/${HOME_USER}
fi fi
# Find .sh files in /usr/bin/custom-scripts and execute them in order # Find .sh files in /usr/bin/custom-scripts and execute them in order

View File

@ -1 +1 @@
3.0.16 3.0.19