Update code-server.sh

tweak
pull/2866/head
tteckster 7 months ago committed by GitHub
parent afe93a2b48
commit e857886838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -79,17 +79,17 @@ VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest
msg_info "Installing Code-Server v${VERSION}" 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 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 rm -rf code-server_${VERSION}_amd64.deb
mkdir -p ~/.config/code-server/ mkdir -p ~/.config/code-server/
sudo systemctl enable --now code-server@$USER &>/dev/null systemctl enable -q --now code-server@$USER
cat <<EOF >~/.config/code-server/config.yaml cat <<EOF >~/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8680 bind-addr: 0.0.0.0:8680
auth: none auth: none
password: password:
cert: false cert: false
EOF EOF
sudo systemctl restart code-server@$USER systemctl restart code-server@$USER
msg_ok "Installed Code-Server v${VERSION} on $hostname" msg_ok "Installed Code-Server v${VERSION} on $hostname"
echo -e "${APP} should be reachable by going to the following URL. echo -e "${APP} should be reachable by going to the following URL.

Loading…
Cancel
Save

Powered by BW's shoe-string budget.