Skip to content

install.sh: Allow installing directly onto a remote host #2183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2020
Merged

install.sh: Allow installing directly onto a remote host #2183

merged 1 commit into from
Oct 9, 2020

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Oct 9, 2020

Updates #1729

To fully close that issue see the various TODOs.

@nhooyr nhooyr requested a review from code-asher October 9, 2020 14:36
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave it a spin and it works like a dream. 🔥


ALL_FLAGS=""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to set SSH_ARGS as well I think to avoid unbound errors.

esac

shift
done

if [ "$SSH_ARGS" ]; then
echoh "Installing remotely with ssh $SSH_ARGS"
curl -fsSL https://code-server.dev/install.sh | prefix "$SSH_ARGS" ssh "$SSH_ARGS" sh -s -- "$ALL_FLAGS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh no need to mess with sh_c and all that with this method. Nice!!

Updates #1729

To fully close that issue see the various TODOs.
@nhooyr nhooyr requested a review from code-asher October 9, 2020 19:03
@nhooyr nhooyr added this to the v3.6.0 milestone Oct 9, 2020
@nhooyr nhooyr merged commit 811cf33 into coder:master Oct 9, 2020
@nhooyr nhooyr deleted the remote-install-2-f3e5 branch October 9, 2020 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants