Trying to fix the instalation of extensions. Updating to version 1.0.19

This commit is contained in:
Alejandro Lembke Barrientos 2023-08-29 16:11:28 +00:00
parent 53afd74739
commit 1a8869bb11
2 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,11 @@ addgroup nonroot
adduser --disabled-password --gecos "" ${HOME_USER} adduser --disabled-password --gecos "" ${HOME_USER}
echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers 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 # Check if the data.json file exists
if [ -f "/home/extensions.json" ]; then if [ -f "/home/extensions.json" ]; then
# Read the JSON file into a variable # 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 # Loop through the extensions and process each element
for extension in $extensions; do for extension in $extensions; do
echo "Installing extension: $extension" 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 done
#sudo mkdir /home/${HOME_USER}/.vscode-server #sudo mkdir /home/${HOME_USER}/.vscode-server
#sudo mkdir /home/${HOME_USER}/.vscode-server-insiders #sudo mkdir /home/${HOME_USER}/.vscode-server-insiders

View File

@ -1 +1 @@
1.0.18 1.0.19