View Single Post
Old 11-15-2016, 04:09 AM   #2
ISPsystem team
 
Join Date: Jul 2014
Posts: 422
ksenya is on a distinguished road
Default

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'
ksenya is offline   Reply With Quote