0 votes
by Rookie

I am trying to add multiple own commands to the api-events, but as soon as I added more than 1 command the core functionality of webinoly is broken.

When I have this in the api-events file: https://pastebin.com/ARvDq409

Custom commands are working, but when I do "webinoly -update" I am just getting "API Status wys".

Do I need to add API references (from here: https://webinoly.com/en/api/internal-api-events/) to api-events file?


1 Answer

0 votes
by Expert
During which event you want to run this code?

See that you are not choosing an event.
by Rookie

I have added actual commands and comments to illustrate it better:

I have tried to add: "api-events_update wys" and "wye".

The custom commands itself are working good, but then when I do "webinoly -update" I still get "API Status wys".

by Expert

This is at least the second time you come here to post about the same topic, please don't do duplicate posts.

Seems like still don't undestand how it works:

api-events_catch_status() {
  if [[ $1 == "si2" ]]; then
    echo "[MESAGGE] WordPress will be installed!"

That's the most clear example I can give you.


by Rookie
Sorry, I thought its a support forum.
by Expert
That's not a reason to open multiple posts for the same topic.
by Rookie
The other topic was mainly about feature request...but its fine, can you merge the topics?
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.