Browse Source

change filename for wildcard for routeros

pull/4637/head
Brian Minton 2 years ago
parent
commit
9528318749
  1. 5
      deploy/routeros.sh

5
deploy/routeros.sh

@ -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

Loading…
Cancel
Save