Skip to content

Commit db09805

Browse files
authored
Fix RouterOS deploy (#7034)
* routeros: save ROUTER_OS_ADDITIONAL_SERVICES as base64 * routeros: remove cer_3
1 parent 4575877 commit db09805

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

deploy/routeros.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ routeros_deploy() {
125125
_savedeployconf ROUTER_OS_PORT "$ROUTER_OS_PORT"
126126
_savedeployconf ROUTER_OS_SSH_CMD "$ROUTER_OS_SSH_CMD"
127127
_savedeployconf ROUTER_OS_SCP_CMD "$ROUTER_OS_SCP_CMD"
128-
_savedeployconf ROUTER_OS_ADDITIONAL_SERVICES "$ROUTER_OS_ADDITIONAL_SERVICES"
128+
_savedeployconf ROUTER_OS_ADDITIONAL_SERVICES "$ROUTER_OS_ADDITIONAL_SERVICES" "base64"
129129

130130
# push key to routeros
131131
if ! _scp_certificate "$_ckey" "$ROUTER_OS_USERNAME@$ROUTER_OS_HOST:$_cdomain.key"; then
@@ -143,6 +143,7 @@ comment=\"generated by routeros deploy script in acme.sh\" \
143143
source=\"/certificate remove [ find name=$_cdomain.cer_0 ];\
144144
\n/certificate remove [ find name=$_cdomain.cer_1 ];\
145145
\n/certificate remove [ find name=$_cdomain.cer_2 ];\
146+
\n/certificate remove [ find name=$_cdomain.cer_3 ];\
146147
\ndelay 1;\
147148
\n/certificate import file-name=\\\"$_cdomain.cer\\\" passphrase=\\\"\\\";\
148149
\n/certificate import file-name=\\\"$_cdomain.key\\\" passphrase=\\\"\\\";\

0 commit comments

Comments
 (0)