Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
3ca97d72
Unverified
Commit
3ca97d72
authored
Jan 04, 2024
by
Dario Pilori
Committed by
GitHub
Jan 04, 2024
Browse files
Remove whitespace in script name in routeros.sh deploy hook
parent
afacdfcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/routeros.sh
View file @
3ca97d72
...
...
@@ -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 ];
\
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment