As part of a user migration script, I need to be able to add some custom httpd config into the CUSTOM tokens, more specifically CUSTOM2. I can't seem to find any documentation on how this could be done.
I ran directadmin in debug mode while updating a CUSTOM2 value, and I found out I can POST my new config with (at least) the following, and it'll be saved as expected:
'domain' => 'mydomain.com'
'custom2' => 'my custom2 config here'
However I can't find any similar GET request to the API for fetching any existing values for these tokens. I need to fetch whatever is currently stored in these tokens, so I don't accidentally overwrite it with my own (temporary) config.
Any help appreciated!
I ran directadmin in debug mode while updating a CUSTOM2 value, and I found out I can POST my new config with (at least) the following, and it'll be saved as expected:
'domain' => 'mydomain.com'
'custom2' => 'my custom2 config here'
However I can't find any similar GET request to the API for fetching any existing values for these tokens. I need to fetch whatever is currently stored in these tokens, so I don't accidentally overwrite it with my own (temporary) config.
Any help appreciated!