fn: web_prepare
Purpose
Keep the compound preparation workflow inside the management executable while mapping its workflow return code onto the registered child actions.
Behavior
- Marks Install Nginx successful when installation completes.
- Marks Start web service successful when startup completes.
- Marks the failing child action failed and leaves later work untouched.
Returns
- 0 when preparation succeeds; otherwise the workflow failure code returned by
manage-web-server.sh.
Usage
web_prepare
