ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=21)
-   -   Shell-scripts doesn't work (http://forum.ispsystem.com//showthread.php?t=2716)

BoxLand 11-14-2016 09:30 AM

Shell-scripts doesn't work
 
Hi,
I tried to create a custom service to sell backups. However, billmgr does not start scripts on the remote server:

2016-11-14 01:19:17 Error: param 'id' does not exist (type: 'missed'; object: 'param'; value: 'id'message: 'param 'id' does not exist'

2016-11-14 01:19:40 Ошибка: No appropriate processing modules (type: 'no_suitable_module'; object: ''; value: ''; msg: 'No appropriate processing modules'message: 'No appropriate processing modules'

I can send you the full log as a private message.

ksenya 11-15-2016 04:09 AM

Hello BoxLand,

first, you need to read carefully the article describing how to use Shell-scripts

Requirements to the open.sh script
The following data are passed as parameters to the script during service activation:
values for tariff add-on in the format --addon=value
values for tariff parameters --param=value
automatically generated username and password: --password=<password> --user=<username>

The script should return code 0 and the string starting with "OK" (in the Latin alphabet letters), then the string should contain the following parameters space separated: --param1=value --param2=value ... --paramN=value.

The obligatory parameter that should be returned - "id", which is a unique identifier of the newly created service. It will be used for further service processing, All output parameters are saved into the itemparam table of the database. The id parameters is saved as externalid. user and password are also saved in itemparam.

The id parameters is saved as ''externalid''. itemparam also contains the ''user'' and ''password'' parameters.

In the above example ''id'' is not returned - Type: 'missed' Object: 'param' Value: 'id'


All times are GMT +2. The time now is 12:24 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.