|
|
|
@ -130,7 +130,7 @@ routeros_deploy() {
|
|
|
|
|
$ROUTER_OS_SCP_CMD "$_ckey" "$ROUTER_OS_USERNAME@$ROUTER_OS_HOST:$_cdomain.key"
|
|
|
|
|
_info "Trying to push cert '$_cfullchain' to router"
|
|
|
|
|
$ROUTER_OS_SCP_CMD "$_cfullchain" "$ROUTER_OS_USERNAME@$ROUTER_OS_HOST:$_cdomain.cer"
|
|
|
|
|
DEPLOY_SCRIPT_CMD="/system script add name=\"LE Cert Deploy - $_cdomain\" owner=$ROUTER_OS_USER \
|
|
|
|
|
DEPLOY_SCRIPT_CMD="/system script add name=\"LE Cert Deploy - $_cdomain\" owner=$ROUTER_OS_USERNAME \
|
|
|
|
|
comment=\"generated by routeros deploy script in acme.sh\" \
|
|
|
|
|
source=\"/certificate remove [ find name=$_cdomain.cer_0 ];\
|
|
|
|
|
\n/certificate remove [ find name=$_cdomain.cer_1 ];\
|
|
|
|
@ -146,6 +146,8 @@ source=\"/certificate remove [ find name=$_cdomain.cer_0 ];\
|
|
|
|
|
\n$ROUTER_OS_ADDITIONAL_SERVICES;\
|
|
|
|
|
\n\"
|
|
|
|
|
"
|
|
|
|
|
_debug DEPLOY_SCRIPT_CMD "${DEPLOY_SCRIPT_CMD}"
|
|
|
|
|
|
|
|
|
|
# shellcheck disable=SC2029
|
|
|
|
|
$ROUTER_OS_SSH_CMD "$ROUTER_OS_USERNAME@$ROUTER_OS_HOST" "$DEPLOY_SCRIPT_CMD"
|
|
|
|
|
# shellcheck disable=SC2029
|
|
|
|
|