-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add deploy/zyxel_gs1900.sh #5043
base: dev
Are you sure you want to change the base?
Add deploy/zyxel_gs1900.sh #5043
Conversation
I'm now using this version locally for my switches. Please let me know if there is anything you'd like me to do to improve the PR. No rush. :) |
A bug has occurred on one of my servers with a different version of sed. Working on a fix now. |
Most recent commit should have resolved the issue I found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the differences between the two implementations and why I was using curl
rather than _post
. I have not been able to get _post
to work.
90a91a2
to
2bedbad
Compare
I've updated for the shellcheck and shfmt linting in the previous run, have removed the defunct curl errors (now that curl is not a requirement) and have squashed the commit to clean up history a bit. |
I've verified that the updated commits continue to work in all of my deployed environments. I don't think I would have figured it out without your suggestion. :) |
8646c3b
to
721e57c
Compare
I have now been using this in production for a few months. @Neilpang please let me know if there is anything else you would like me to do - or if there's anything I can do to help get this included. :) Thanks again for your time and help! |
Add support for deploying to the Zyxel GS1900 line of switches as long as those switches are running at least firmware V2.80. Tested on a Zyxel GS1900-8 and GS1900-24E Resolves acmesh-official#5042
721e57c
to
304dbcb
Compare
Rebased onto the latest |
why do you need to "ReadBodyFromFile"? |
Great question @Neilpang. I responded in the gitter.im chat while the repo was restricted, but I'll repeat it here just in case it wasn't seen. I need to read from file because this switch expects a binary exact, not encoded, upload of the certificate. The uploaded certificate contains many \0 NULL bytes which cannot be piped within the shell script without being truncated. Making I hope this helps clarify. |
Add support for deploying to the Zyxel GS1900 line of switches as long as those switches are running at least firmware V2.80.
Tested on a Zyxel GS1900-8 and GS1900-24E
Resolves #5042