Skip to content

Commit

Permalink
Merge pull request #4940 from dario-pilori/fix-routeros-7
Browse files Browse the repository at this point in the history
Fix RouterOS deploy hook for 7
  • Loading branch information
Neilpang authored Jan 4, 2024
2 parents 9786dcc + 3ca97d7 commit 2e58cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/routeros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ routeros_deploy() {
return $_err_code
fi

DEPLOY_SCRIPT_CMD="/system script add name=\"LE Cert Deploy - $_cdomain\" owner=$ROUTER_OS_USERNAME \
DEPLOY_SCRIPT_CMD="/system script add name=\"LECertDeploy-$_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 ];\
Expand All @@ -158,11 +158,11 @@ source=\"/certificate remove [ find name=$_cdomain.cer_0 ];\
return $_err_code
fi

if ! _ssh_remote_cmd "/system script run \"LE Cert Deploy - $_cdomain\""; then
if ! _ssh_remote_cmd "/system script run \"LECertDeploy-$_cdomain\""; then
return $_err_code
fi

if ! _ssh_remote_cmd "/system script remove \"LE Cert Deploy - $_cdomain\""; then
if ! _ssh_remote_cmd "/system script remove \"LECertDeploy-$_cdomain\""; then
return $_err_code
fi

Expand Down

0 comments on commit 2e58cf1

Please sign in to comment.