From e857886838ead3254d3f4ec82b6d8274e11c298e Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 26 Apr 2024 01:04:05 -0400 Subject: [PATCH] Update code-server.sh tweak --- misc/code-server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/code-server.sh b/misc/code-server.sh index 919ea863..0eb46dcf 100644 --- a/misc/code-server.sh +++ b/misc/code-server.sh @@ -79,17 +79,17 @@ VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest msg_info "Installing Code-Server v${VERSION}" curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb &>/dev/null -sudo dpkg -i code-server_${VERSION}_amd64.deb &>/dev/null +dpkg -i code-server_${VERSION}_amd64.deb &>/dev/null rm -rf code-server_${VERSION}_amd64.deb mkdir -p ~/.config/code-server/ -sudo systemctl enable --now code-server@$USER &>/dev/null +systemctl enable -q --now code-server@$USER cat <~/.config/code-server/config.yaml bind-addr: 0.0.0.0:8680 auth: none password: cert: false EOF -sudo systemctl restart code-server@$USER +systemctl restart code-server@$USER msg_ok "Installed Code-Server v${VERSION} on $hostname" echo -e "${APP} should be reachable by going to the following URL.