From 66c96f1fe76b802ec55b1e540411bf6b6c69aa63 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 10 Apr 2024 08:03:53 +0000 Subject: [PATCH] Fixing issue of sed. Updating to version 2.0.40 --- entrypoint.sh | 9 +-------- version.txt | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4a5c334..9810f0e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,18 +36,11 @@ if [ "${HOME_USER-}" ]; then # Copy the HOME variable from vscode user to HOME_USER sudo su - ${HOME_USER} -c "echo 'export HOME=\"/home/\${HOME_USER}\"' >> ~/.bashrc" - # 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}/ - # Changing the HOME_USER in the .bashrc file - sudo su - ${HOME_USER} -c '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. sudo su -l ${HOME_USER} diff --git a/version.txt b/version.txt index cf28835..0ac38be 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.39 \ No newline at end of file +2.0.40 \ No newline at end of file