pull/4637/merge
Brian Minton 2025-03-03 22:44:38 +00:00 committed by GitHub
commit 6f00b7285a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ routeros_deploy() {
_savedeployconf ROUTER_OS_SCP_CMD "$ROUTER_OS_SCP_CMD"
_savedeployconf ROUTER_OS_ADDITIONAL_SERVICES "$ROUTER_OS_ADDITIONAL_SERVICES"
# rename wildcards to avoid * character in file names
if [ "$(printf %c $_cdomain)" = '*' ]; then
_cdomain=$(echo $_cdomain|sed 's/\*/star/g')
fi
# push key to routeros
if ! _scp_certificate "$_ckey" "$ROUTER_OS_USERNAME@$ROUTER_OS_HOST:$_cdomain.key"; then
return $_err_code