mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 04:18:11 -06:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
a1e53a6624
|
|||
3da90aa1a4
|
|||
aa9afba282
|
|||
0fe46e635d
|
|||
d84caeb8cf
|
@ -159,25 +159,9 @@ fi
|
||||
|
||||
# Check if CLI directory exists and has content
|
||||
if [ -d "/home/${HOME_USER}/.vscode/cli" ] && [ "$(ls -A /home/${HOME_USER}/.vscode/cli 2>/dev/null)" ]; then
|
||||
# CLI directory exists and has content, ensure proper permissions first
|
||||
sudo chmod -R a+rwX /home/${HOME_USER}/.vscode/cli
|
||||
|
||||
# Wait briefly to ensure services are up
|
||||
sleep 2
|
||||
|
||||
echo "Restarting VS Code tunnel..."
|
||||
# Try to restart, but fall back to normal startup if it fails
|
||||
if ! sudo su ${HOME_USER} -c "code tunnel restart"; then
|
||||
echo "Tunnel restart failed, trying normal startup..."
|
||||
if [[ -v VSCODE_TUNNEL_NAME && -n "${VSCODE_TUNNEL_NAME}" ]]; then
|
||||
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
|
||||
else
|
||||
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms"
|
||||
fi
|
||||
fi
|
||||
sudo su ${HOME_USER} -c "code tunnel"
|
||||
else
|
||||
# No CLI directory or empty, use normal startup
|
||||
echo "Starting new VS Code tunnel session..."
|
||||
if [[ -v VSCODE_TUNNEL_NAME && -n "${VSCODE_TUNNEL_NAME}" ]]; then
|
||||
sudo su ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
|
||||
else
|
||||
|
@ -1 +1 @@
|
||||
3.2.1
|
||||
3.2.6
|
||||
|
Reference in New Issue
Block a user