Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cPanel deploy bug for wildcard subdomains #6115

Open
jmedellinc opened this issue Nov 26, 2024 · 1 comment
Open

cPanel deploy bug for wildcard subdomains #6115

jmedellinc opened this issue Nov 26, 2024 · 1 comment

Comments

@jmedellinc
Copy link

on the deploy function, on the cpanel script, the function
uapi DomainInfo list_domains

returns the following:

apiversion: 3
func: list_domains
module: DomainInfo
result: 
  data: 
    addon_domains: 
      - abc.com
      - cde.com
    main_domain: abc.com
    parked_domains: []

    sub_domains: 
      - test.abc.com
      - "*.cde.com"
  errors: ~
  messages: ~
  metadata: {}

  status: 1
  warnings: ~

as you can see, the wildcard subdomain is between double quotes which results on the domain not being located..

That was easily fixed adding a
tr -d "\""
to the API call on line 82

  #   _response=$(uapi DomainInfo list_domains)
   _response=$(uapi DomainInfo list_domains | tr -d "\"")

Sorry for not posting the failed command.. I made it work, am away from the machine (decided to post or i'll forget about it) and quite frankly i'm scared it might screw things up if i start fiddling with how to reproduce it - and i think the fix is pretty straightforward..

Let me know if you need me to post the messages

Copy link

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant