From 762ff44dc8f8022370a790b99bd79f07578d13f0 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Thu, 15 Feb 2024 18:56:28 +0000 Subject: [PATCH] Fixing sudo issue. --- entrypoint.sh | 4 ++-- version.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 851a168..1ebeb4a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,8 +16,8 @@ eval "$(fixuid -q)" if [ "${HOME_USER-}" ]; then USER="$HOME_USER" if [ "$HOME_USER" != "$(whoami)" ]; then - adduser --disabled-password --gecos "" ${HOME_USER} - echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null + sudo adduser --disabled-password --gecos "" ${HOME_USER} + sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null su - $HOME_USER # Unfortunately we cannot change $HOME as we cannot move any bind mounts # nor can we bind mount $HOME into a new home as that requires a privileged container. diff --git a/version.txt b/version.txt index 703cec9..6a0ca2d 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.6 \ No newline at end of file +2.0.7 \ No newline at end of file