hetzner_dns api plugin

vasyansk

Member
Feb 8, 2021
8
1
8
Nsk
realmanual.ru
hetzner_dns not work in ver 7.1

where is code in file: /usr/share/proxmox-acme/proxmox-acme ?
two function not found and api plugin not work:

Bash:
dns_hetzner.sh: line 154: _readdomainconf: command not found

lost functions i get from original file acme.sh

Bash:
#_readdomainconf
_readdomainconf() {
  _read_conf "$DOMAIN_CONF" "$1"
}

_read_conf() {
  _r_c_f="$1"
  _sdkey="$2"
  if [ -f "$_r_c_f" ]; then
    _sdv="$(
      eval "$(grep "^$_sdkey *=" "$_r_c_f")"
      eval "printf \"%s\" \"\$$_sdkey\""
    )"
    if _startswith "$_sdv" "${B64CONF_START}" && _endswith "$_sdv" "${B64CONF_END}"; then
      _sdv="$(echo "$_sdv" | sed "s/${B64CONF_START}//" | sed "s/${B64CONF_END}//" | _dbase64)"
    fi
    printf "%s" "$_sdv"
  else
    _debug "config file is empty, can not read $_sdkey"
  fi
}
 
where is code in file: /usr/share/proxmox-acme/proxmox-acme
the code is what is in this file - it is a (small) subset of acme.sh - and should contain everything needed for the dns_plugins
(in this case something was most likely forgotten)

Since proxmox-acme does not use the config files acme.sh uses - we usually just make those operation behave like noops

could you try adding the following to /usr/share/proxmox-acme/proxmox-acme:
Code:
# key                                                                                               
_readdomainconf() {                                                                                
  echo "${!1}"                                                                                      
}
(copied from _readaccountconf there)

From quickly looking at the hetzner plugin it should fall back to querying this from hetzner and this should work

you can restore the pristine state of /usr/share/proxmox-acme/proxmox-acme by reinstalling libproxmox-acme-plugins: `apt reinstall libproxmox-acme-plugins`

Please tell us if it works with this addition - then we can update it for the next release.

Thanks!
 
the code is what is in this file - it is a (small) subset of acme.sh - and should contain everything needed for the dns_plugins
(in this case something was most likely forgotten)

Since proxmox-acme does not use the config files acme.sh uses - we usually just make those operation behave like noops

could you try adding the following to /usr/share/proxmox-acme/proxmox-acme:
Code:
# key                                                                                              
_readdomainconf() {                                                                               
  echo "${!1}"                                                                                     
}
(copied from _readaccountconf there)

From quickly looking at the hetzner plugin it should fall back to querying this from hetzner and this should work

you can restore the pristine state of /usr/share/proxmox-acme/proxmox-acme by reinstalling libproxmox-acme-plugins: `apt reinstall libproxmox-acme-plugins`

Please tell us if it works with this addition - then we can update it for the next release.

Thanks!
yes, its work.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!