Trying to fix entrypoint.sh Updating to version 1.0.7

This commit is contained in:
Alejandro Lembke Barrientos 2023-08-25 18:20:22 +00:00
parent 49ffeccf7e
commit c189c21474
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,14 @@
#!/bin/bash #!/bin/bash
[[ -z "${HOME_USER}" ]] && (adduser --disabled-password --gecos "" vscode && echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && sudo su - vscode) \ if [[ -z "${HOME_USER}" ]]; then
|| (adduser --disabled-password --gecos "" ${HOME_USER} && echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && sudo su - ${HOME_USER}) HOME_USER="vscode"
[[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME} fi
adduser --disabled-password --gecos "" ${HOME_USER}
echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sudo su - ${HOME_USER}
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
code-server tunnel --accept-server-license-terms
else
code-server tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
fi

View File

@ -1 +1 @@
1.0.6 1.0.7