aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-08-14 00:28:12 +0800
committercrupest <crupest@outlook.com>2024-08-14 11:32:21 +0800
commit851082d559fe3a5bc3c0b57581e65c316b4bd6e0 (patch)
tree1aa2494f804d67835f80afc5b43f0509f06fa96c /docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash
parentae5ec17b9b742006f11cf25c1761724453197260 (diff)
downloadcrupest-851082d559fe3a5bc3c0b57581e65c316b4bd6e0.tar.gz
crupest-851082d559fe3a5bc3c0b57581e65c316b4bd6e0.tar.bz2
crupest-851082d559fe3a5bc3c0b57581e65c316b4bd6e0.zip
feat(docker/debian-dev): add output when starting code-server.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash')
-rw-r--r--docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash b/docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash
index e683e76..7cc6770 100644
--- a/docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash
+++ b/docker/crupest-debian-dev/bootstrap/bash-profile/code-server.bash
@@ -5,8 +5,11 @@ CODE_SERVER_PORT=8080
if which "$CODE_SERVER_PROGRAM" > /dev/null 2>&1; then
if ! pgrep -f "$CODE_SERVER_PROGRAM" > /dev/null 2>&1; then
+ echo "code-server is not running, starting..."
mkdir -p ~/.local/share/code-server
"$CODE_SERVER_PROGRAM" "--bind-addr", "0.0.0.0:$CODE_SERVER_PORT" \
> ~/.local/share/code-server/log 2> ~/.local/share/code-server/error &
fi
+else
+ echo "code-server not found, skipping code-server setup."
fi