Commit Graph

21 Commits (ab86e056a26112ca5ef145c60cc28afbd0ca2baa)

Author SHA1 Message Date
Dario Pilori 3ca97d7258
Remove whitespace in script name in routeros.sh deploy hook 1 year ago
Andreas Bießmann 3411b736dd deploy/routeros: add error handling for scp
In order to stop processing on failure to copy certificate
to remote side, fail on error of scp command.

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
3 years ago
Andreas Bießmann c603b9c40b deploy/routeros: add error handling for ssh
In order to detect errorneous scripts on remote side, catch return code
and handle it respectively.

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
Reviewed-by: Ross Shen @sjtuross
3 years ago
Andreas Bießmann 9d6d96adf3 deploy/routeros.sh: fix routeros script
Commit c46ceb06b4 introduced an error in
routeros script.

Fix it!

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
3 years ago
Andreas Bießmann c46ceb06b4 deploy/routeros.sh: change DEPLOY_SCRIPT_CMD
This set the owner of script to ssh user, have the comment line in script
as real comment and removes policy since this is set from current user,
at least for RouterOS 7.x.

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
3 years ago
Andreas Bießmann 92e4ecce3b deploy/routeros.sh: remove all certificates
As the script is applying the fullchain which includes three certificates,
delete all of them before applying updated certificate.

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
3 years ago
Andreas Bießmann 8a2f673903 deploy/routeros.sh: make ssh/scp configurable
In order to modify ssh/scp commands make them configurable via
environment variables.

Signed-off-by: Andreas Bießmann <andreas@biessmann.org>
3 years ago
Mac_Zhou 205e95a246 Add environment variables ROUTER_OS_PORT 3 years ago
Ross Shen df671a77f6 routeros deploy hook: store the env vars within the domainconf
related to #2344 and #2413
3 years ago
Charlie Garrison b23e05dbc5 Added trailing slash to end of each line of DEPLOY_SCRIPT_CMD 5 years ago
Charlie Garrison c42dbbfec8 reformatted RouterOS script for shfmt checks 6 years ago
Charlie Garrison 03a407d4df Added additional `shellcheck` ignores for client-side evaluation warning
Should pass CI tests now
6 years ago
Charlie Garrison 0cddc8a154 change to routeros native script rather than bash multiline commands 6 years ago
Pål Håland ebaa3f39e4 Merge remote-tracking branch 'origin/dev' into dev 6 years ago
Pål Håland e19753dcde Moved documentation from deploy/README.md to deploy/routeros.sh 6 years ago
Pål Håland 86fbb5952e Use env sh 6 years ago
Pål Håland 8d38cf4d1f Use allchain instead of ca an cert, add documentation after review 7 years ago
Pål Håland d698c1093a remove spaces around assignment 7 years ago
Pål Håland e629985cf4 Use _cdomain if ROUTER_OS_HOST is missing 7 years ago
Pål Håland 8a604bd2a1 Fixing syntax for schell script checking 8 years ago
Pål Håland b8a8e2280d Added deploy script to deploy to the routeros system 8 years ago