From 1a8869bb114ffe2ef8458b96e7db876f72d24ba9 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 29 Aug 2023 16:11:28 +0000 Subject: [PATCH] Trying to fix the instalation of extensions. Updating to version 1.0.19 --- entrypoint.sh | 7 ++++++- version.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 63e5ea7..551fe4f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,6 +7,11 @@ addgroup nonroot adduser --disabled-password --gecos "" ${HOME_USER} echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +#Creating extensions folder +sudo mkdir /home/${HOME_USER}/.vscode-server +sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server +code --extensions-dir /home/${HOME_USER}/.vscode-server + # Check if the data.json file exists if [ -f "/home/extensions.json" ]; then # Read the JSON file into a variable @@ -18,7 +23,7 @@ if [ -f "/home/extensions.json" ]; then # Loop through the extensions and process each element for extension in $extensions; do echo "Installing extension: $extension" - sudo su - ${HOME_USER} -c "code --install-extension $extension" + sudo su - ${HOME_USER} -c "code --install-extension $extension --extensions-dir " done #sudo mkdir /home/${HOME_USER}/.vscode-server #sudo mkdir /home/${HOME_USER}/.vscode-server-insiders diff --git a/version.txt b/version.txt index c678b02..e7ad390 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.18 \ No newline at end of file +1.0.19 \ No newline at end of file