The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Blank Installation Directory for Addon

Discussion in 'cPanel Developers' started by jsegars, May 30, 2006.

  1. jsegars

    jsegars Registered

    Joined:
    Nov 23, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Is there any way to force the cpAddon system to allow for a blank installation directory? We're creating a custom addon and the vast majority of our users will want it running from the root of their domain rather than a subdirectory.

    The default behavior for the addon system and all the extisting addons seems to be that it requires a subdirectory but I was hoping there was some way to override this.

    Thanks in advance for any help!
    Jeff
     
  2. jsegars

    jsegars Registered

    Joined:
    Nov 23, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Finally found a solution after digging through the cpaddon source code...

    In the meta_info hash, add a version entry with an empty array...

    Code:
    'my_version_number' => { 
      public_html_install_files => [],
    },
    
     
  3. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    I need some info about it, i have same problem here......what source file exactly have you been edited?
     
Loading...

Share This Page