How to handle own cgi-bin files in addons?

English! place to talk about development, programming and coding
Post Reply
nicmic
Znuny newbie
Posts: 7
Joined: 31 Jan 2015, 15:23
Znuny Version: 4.0.5

How to handle own cgi-bin files in addons?

Post by nicmic »

If i call my ajax request we land in the standard folder for cgi scripts. But how i get the file into this folder during installation time without manual copy?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to handle own cgi-bin files in addons?

Post by reneeb »

You have to create the <ADDONROOT>/bin/cgi-bin directory. Then you need in the Filelist node of the .sopm a File node where Location is "bin/cgi-bin/<name>" and Permission "755".
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
nicmic
Znuny newbie
Posts: 7
Joined: 31 Jan 2015, 15:23
Znuny Version: 4.0.5

Re: How to handle own cgi-bin files in addons?

Post by nicmic »

The topic package build was not yet on my list, so i had assumed it would also somewhere in custom folder or so.
The file is included in my package now and all is working fine. Thank you.
Post Reply