pre/post commands indicate action being taken

It would be extremely useful for people writing pre/post update scripts if virtualmin could indicate what action is being taken, ie. CREATE / UPDATE / DELETE.

maybe in an environment variable like VIRTUALSERVER_UPDATE_MODE=CREATE|UPDATE|DELETE

Status: 
Closed (fixed)

Comments

That's great, sorry for not looking hard enough! Any chance of getting the other possible values for $VIRTUALSERVER_ACTION added to the docs?

Sure, I will add those to the docs..

Automatically closed -- issue fixed for 2 weeks with no activity.