mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 05:06:46 -06:00
Trying to fix the instalation of extensions. Updating to version 1.0.19
This commit is contained in:
parent
53afd74739
commit
1a8869bb11
@ -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
|
||||
|
@ -1 +1 @@
|
||||
1.0.18
|
||||
1.0.19
|
Loading…
Reference in New Issue
Block a user