From f5a6331fd3aa7ca13d33577dd50849046f91a5e6 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 29 Aug 2023 19:39:54 +0000 Subject: [PATCH] Trying to fix the instalation of extensions. Updating to version 1.0.22 --- entrypoint.sh | 15 +++++++-------- version.txt | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index effc264..746ecfa 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,7 +12,8 @@ sudo mkdir /home/${HOME_USER}/.config/Code sudo chmod -R a+rwX /home/${HOME_USER}/.config/Code sudo mkdir /home/${HOME_USER}/.vscode-server sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server -sudo su - ${HOME_USER} -c "code --extensions-dir /home/${HOME_USER}/.vscode-server" +sudo mkdir /home/${HOME_USER}/.vscode-server-insiders +sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server-insiders # Check if the data.json file exists if [ -f "/home/extensions.json" ]; then @@ -27,13 +28,11 @@ if [ -f "/home/extensions.json" ]; then echo "Installing extension: $extension" sudo su - ${HOME_USER} -c "code --install-extension $extension" done - #sudo mkdir /home/${HOME_USER}/.vscode-server - #sudo mkdir /home/${HOME_USER}/.vscode-server-insiders - #sudo cp -R /home/${HOME_USER}/.vscode/* /home/${HOME_USER}/.vscode-server - #sudo cp -R /home/${HOME_USER}/.vscode/* /home/${HOME_USER}.vscode-server-insiders - #sudo chmod -R a+rwX /home/${HOME_USER}/.vscode - #sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server - #sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server-insiders + sudo cp -R /home/${HOME_USER}/.vscode/* /home/${HOME_USER}/.vscode-server + sudo cp -R /home/${HOME_USER}/.vscode/* /home/${HOME_USER}.vscode-server-insiders + sudo chmod -R a+rwX /home/${HOME_USER}/.vscode + sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server + sudo chmod -R a+rwX /home/${HOME_USER}/.vscode-server-insiders else echo "File extensions.json not found" fi diff --git a/version.txt b/version.txt index 2fa3901..1c2de38 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.22 \ No newline at end of file +1.0.23 \ No newline at end of file