Trying to fix vscode issue. Updating to version 2.0.55

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-12 07:42:57 +00:00
parent cd8b5c19e1
commit c27e148488
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,13 @@
#!/bin/bash
set -eu
# Check if we are root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exec sudo /usr/bin/entrypoint.sh
exit 0
fi
if [[ -z "${HOME_USER-}" ]]; then
HOME_USER="vscode"
fi
@ -59,9 +66,7 @@ if [ "${HOME_USER-}" ]; then
# Delete the vscode user
if id "vscode" &>/dev/null; then
sudo chown -R vscode:vscode /home/vscode
sudo pkill -u vscode
sleep 2 # wait for processes to terminate
sudo -u root bash -c 'userdel -r vscode'
sudo userdel -r vscode
fi
else
# Switch to the user specified by $HOME_USER and start an interactive shell session.

View File

@ -1 +1 @@
2.0.54
2.0.55