diff --git a/entrypoint.sh b/entrypoint.sh index 26ebf10..9d65652 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,4 @@ #!/bin/bash -[[ -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 +[[ -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) [[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME} \ No newline at end of file diff --git a/version.txt b/version.txt index e4c0d46..a6a3a43 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.3 \ No newline at end of file +1.0.4 \ No newline at end of file