[BUG] Wrong plugin directory when installing from URL

websafe

Verified User
Joined
Jun 15, 2010
Messages
103
Location
Opole, PL
I've noticed some unexpected behavior when installing plugins by providing an URL.

For example, when I add (/CMD_PLUGIN_MANAGER) a plugin by providing this url:

http://www.directadmin.com/hello_world.tar.gz everything is fine, the directory
Code:
/usr/local/directadmin/plugins/hello_world
is created and the plugin resides in this directory - as expected.

But I want to publish my plugins by naming the tarballs in a usual way, like this:
Code:
pluginname-VERSION.tar.gz
,
Code:
myplugin-1.0.2.tar.gz

But in this case DirectAdmin will not use the `id=` field found in `plugin.conf` which is located in the tarball, but will use the tarball name to the first dot.

So when I try to install
Code:
websafe-dap-asset-jquery-0.3.5.tar.gz
from this URL: https://download.websafe.pl/pub/dir...-jquery/websafe-dap-asset-jquery-0.3.5.tar.gz DirectAdmin will create:
Code:
/usr/local/directadmin/plugins/websafe-dap-asset-jquery-0

(with a `-0` suffix) instead of the expected

Code:
/usr/local/directadmin/plugins/websafe-dap-asset-jquery

(as stated in the `id` field of `plugin.conf`).


Any chance to have this fixed?
 
Back
Top