mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-29 18:13:10 +01:00
Update code-server.sh
tweak
This commit is contained in:
parent
afe93a2b48
commit
e857886838
@ -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…
Reference in New Issue
Block a user