mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 13:16:48 -06:00
Trying to fix entrypoint.sh Updating to version 1.0.7
This commit is contained in:
parent
49ffeccf7e
commit
c189c21474
@ -1,4 +1,14 @@
|
||||
#!/bin/bash
|
||||
[[ -z "${HOME_USER}" ]] && (adduser --disabled-password --gecos "" vscode && echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && sudo su - vscode) \
|
||||
|| (adduser --disabled-password --gecos "" ${HOME_USER} && echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && sudo su - ${HOME_USER})
|
||||
[[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
||||
if [[ -z "${HOME_USER}" ]]; then
|
||||
HOME_USER="vscode"
|
||||
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
|
||||
|
@ -1 +1 @@
|
||||
1.0.6
|
||||
1.0.7
|
Loading…
Reference in New Issue
Block a user