Compare commits

..

5 Commits

2 changed files with 19 additions and 4 deletions

View File

@ -7,10 +7,25 @@ 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
# sudo su - ${HOME_USER} # Check if the data.json file exists
if [ -f "/home/extensions.json" ]; then
# Read the JSON file into a variable
jsonExtensions=$(cat /home/extensions.json)
# Use jq to extract the array elements
extensions=$(echo $jsonExtensions | jq -r '.[]')
# 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"
done
else
echo "File extensions.json not found"
fi
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
code tunnel --accept-server-license-terms sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms"
else else
code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME} sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
fi fi

View File

@ -1 +1 @@
1.0.10 1.0.15