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> 
							
						 
						
							2022-03-18 09:10:12 +01:00  
						
					 
				
					
						
							
							
								 
								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 
							
						 
						
							2022-03-18 09:07:59 +01:00  
						
					 
				
					
						
							
							
								 
								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> 
							
						 
						
							2022-03-17 12:24:42 +01:00  
						
					 
				
					
						
							
							
								 
								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> 
							
						 
						
							2022-02-19 14:13:01 +01:00  
						
					 
				
					
						
							
							
								 
								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> 
							
						 
						
							2022-02-19 14:13:01 +01:00  
						
					 
				
					
						
							
							
								 
								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> 
							
						 
						
							2022-02-19 14:12:59 +01:00  
						
					 
				
					
						
							
							
								 
								Mac_Zhou
							
						 
						
							 
							
							
							
								
							
								205e95a246 
								
							
								 
							
						 
						
							
							
								
								Add environment variables ROUTER_OS_PORT  
							
							 
							
							
							
						 
						
							2022-02-10 11:29:09 +08:00  
						
					 
				
					
						
							
							
								 
								Ross Shen
							
						 
						
							 
							
							
							
								
							
								df671a77f6 
								
							
								 
							
						 
						
							
							
								
								routeros deploy hook: store the env vars within the domainconf  
							
							 
							
							... 
							
							
							
							related to #2344  and #2413  
							
						 
						
							2022-01-19 20:46:29 +08:00  
						
					 
				
					
						
							
							
								 
								Charlie Garrison
							
						 
						
							 
							
							
							
								
							
								b23e05dbc5 
								
							
								 
							
						 
						
							
							
								
								Added trailing slash to end of each line of DEPLOY_SCRIPT_CMD  
							
							 
							
							
							
						 
						
							2019-11-26 20:39:08 +11:00  
						
					 
				
					
						
							
							
								 
								Charlie Garrison
							
						 
						
							 
							
							
							
								
							
								c42dbbfec8 
								
							
								 
							
						 
						
							
							
								
								reformatted RouterOS script for shfmt checks  
							
							 
							
							
							
						 
						
							2019-06-03 11:38:39 +10:00  
						
					 
				
					
						
							
							
								 
								Charlie Garrison
							
						 
						
							 
							
							
							
								
							
								03a407d4df 
								
							
								 
							
						 
						
							
							
								
								Added additional `shellcheck` ignores for client-side evaluation warning  
							
							 
							
							... 
							
							
							
							Should pass CI tests now 
							
						 
						
							2019-05-29 14:05:20 +10:00  
						
					 
				
					
						
							
							
								 
								Charlie Garrison
							
						 
						
							 
							
							
							
								
							
								0cddc8a154 
								
							
								 
							
						 
						
							
							
								
								change to routeros native script rather than bash multiline commands  
							
							 
							
							
							
						 
						
							2019-05-26 01:32:13 +10:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								ebaa3f39e4 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/dev' into dev  
							
							 
							
							
							
						 
						
							2019-03-21 15:54:02 +01:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								e19753dcde 
								
							
								 
							
						 
						
							
							
								
								Moved documentation from deploy/README.md to deploy/routeros.sh  
							
							 
							
							
							
						 
						
							2019-03-21 15:53:11 +01:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								86fbb5952e 
								
							
								 
							
						 
						
							
							
								
								Use env sh  
							
							 
							
							
							
						 
						
							2019-03-02 16:39:41 +01:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								8d38cf4d1f 
								
							
								 
							
						 
						
							
							
								
								Use allchain instead of ca an cert, add documentation after review  
							
							 
							
							
							
						 
						
							2018-03-26 22:00:01 +02:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								d698c1093a 
								
							
								 
							
						 
						
							
							
								
								remove spaces around assignment  
							
							 
							
							
							
						 
						
							2018-03-26 08:24:04 +02:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								e629985cf4 
								
							
								 
							
						 
						
							
							
								
								Use _cdomain if ROUTER_OS_HOST is missing  
							
							 
							
							
							
						 
						
							2018-03-26 07:41:56 +02:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								8a604bd2a1 
								
							
								 
							
						 
						
							
							
								
								Fixing syntax for schell script checking  
							
							 
							
							
							
						 
						
							2017-03-06 19:39:55 +01:00  
						
					 
				
					
						
							
							
								 
								Pål Håland
							
						 
						
							 
							
							
							
								
							
								b8a8e2280d 
								
							
								 
							
						 
						
							
							
								
								Added deploy script to deploy to the routeros system  
							
							 
							
							
							
						 
						
							2017-03-05 13:43:01 +01:00