🐞 Don't report an error for non-first nodes codeserver

This commit is contained in:
Jérôme Petazzoni
2025-01-27 11:42:47 +01:00
parent a46476fb0d
commit b163ad0934

View File

@@ -59,7 +59,7 @@ _cmd_codeserver() {
CODESERVER_URL=https://github.com/coder/code-server/releases/download/v${CODESERVER_VERSION}/code-server-${CODESERVER_VERSION}-linux-${ARCH}.tar.gz
pssh "
set -e
i_am_first_node || exit
i_am_first_node || exit 0
if ! [ -x /usr/local/bin/code-server ]; then
curl -fsSL $CODESERVER_URL | sudo tar zx -C /opt
sudo ln -s /opt/code-server-${CODESERVER_VERSION}-linux-${ARCH}/bin/code-server /usr/local/bin/code-server