How do you tar a module so module admin will install it

I wrote a module for freePBX. For the life of me. No matter how I tar the files it gives me a error: File extracting to invalid location:

any ideas?

this is what I tried from the directory modules:
/var/www/admin/modules# tar -cvzpf mydirectory-1.0.tar.gz mydirectory

i’m using ubuntu if that helps.

Don’t unpack it use the “Upload Module” in module admin.

I made a module and want to tar it so people can install via the upload managers.

I just saw the module admin bit… sorry. try sending the files to /tmp/

For anyone else that ever has this problem
/var/www/admin/modules# tar -cvpzf mymodname-1.0.tgz mymodname

don’t use tar.gz use .tgz

Hello,
I realize this is an old post, but I couldn’t find anything else via searching.
I am having the same issue and I have tried what stoponeit said.

Any other suggestions?

Never mind, I figured it out. I had the file name different than the module name.