Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Pass ssh flags to rsync #21

Merged
merged 1 commit into from
Apr 21, 2019
Merged

Pass ssh flags to rsync #21

merged 1 commit into from
Apr 21, 2019

Conversation

ammario
Copy link
Member

@ammario ammario commented Apr 20, 2019

Resolves #19

main.go Outdated
if err != nil {
flog.Fatal("failed to sync settings: %v", err)
}
flog.Info("synced settings in %s", time.Since(start))

flog.Info("syncing extensions")
err = syncExtensions(host)
err = syncExtensions(host, *sshFlags)
Copy link
Contributor

Choose a reason for hiding this comment

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

Args should be flipped.

@ammario ammario requested a review from scsmithr April 20, 2019 20:40
main.go Outdated
`/bin/bash -c 'set -euxo pipefail || exit 1
wget -q https://codesrv-ci.cdr.sh/latest-linux -O `+codeServerPath+`
downloadScript := `/bin/bash -c 'set -euxo pipefail || exit 1
wget -q https://codesrv-ci.cdr.sh/latest-linux -O ` + codeServerPath + `
Copy link
Contributor

Choose a reason for hiding this comment

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

why two wget?

Copy link
Member Author

Choose a reason for hiding this comment

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

No idea how that got there.. That script is completely broken. We're going to want some tests

Copy link
Contributor

Choose a reason for hiding this comment

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

I think its a good idea we http.Get on our side and then just write the binary to the remote side if it has changed. Would be nice and easy to test as well versus bash scripts.

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is the bin is 90MB.

@ammario ammario requested a review from nhooyr April 20, 2019 23:39
- Also use ssh flags when running the download script

Resolves #19
@ammario ammario merged commit cb036d8 into master Apr 21, 2019
@ammario ammario deleted the ssh-flags-rsync branch April 21, 2019 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non standard ssh port not working
3 participants