Trying to fix entrypoint.sh Updating to version 1.0.3

This commit is contained in:
Alejandro Lembke Barrientos 2023-08-25 16:55:29 +00:00
parent 711b77fa2c
commit 4bcf68cd67
3 changed files with 4 additions and 4 deletions

View File

@ -33,4 +33,4 @@ RUN sudo sysctl -w fs.inotify.max_user_watches=524288
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
RUN sudo chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["bash", "/usr/bin/entrypoint.sh"]
ENTRYPOINT ["/usr/bin/entrypoint.sh"]

View File

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

View File

@ -1 +1 @@
1.0.2
1.0.3