-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
change to routeros native script rather than bash multiline commands #2292
Conversation
please fix the CI errors first. |
I had to read up on |
can you confirm the latest changes works as expected? |
Yes, it works as expected. Specifically, I tested with the following commands:
The
I confirmed the correct cert is installed:
And
During testing, I also manually ran the contents of the RouterOS script to confirm each command is successful. Is there any further testing you would like done? -cng |
I know it's a deploy hook, please create an issue for reporting future bugs. |
Issue is created: #2344 I have subscribed to notifications. |
This is working for me, but I had to manually put my ROUTER_OS env vars in my |
I was unable to deploy to RouterOS device due to use of
bash
in thessh
command. Since RouterOS will only run a single command with eachssh
command, a different solution is needed for multi-line commands. This PR uses native RouterOS script instead of bash.The same RouterOS commands are used to deploy the cert, but the commands are used as
source
for a RouterOS script which is added via assh
command. Two subsequent commands run the new script, and then delete the script.I made a minor change to the
/certificate remove
command so that it's more robust if the certs don't already exist. (Uses the[ find ... ]
syntax rather than hard-coded cert names.)