Submitted by ChrisBlackwell on Tue, 11/10/2009 - 13:28
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
Submitted by JamieCameron on Tue, 11/10/2009 - 14:00 Comment #1
That already exists, in the $VIRTUALSERVER_ACTION variable, which set to CREATE_DOMAIN, DELETE_DOMAIN and a few others.
See http://www.virtualmin.com/documentation/id,template_variable_listing
Submitted by ChrisBlackwell on Tue, 11/10/2009 - 16:17 Comment #2
That's great, sorry for not looking hard enough! Any chance of getting the other possible values for $VIRTUALSERVER_ACTION added to the docs?
Submitted by JamieCameron on Wed, 11/11/2009 - 01:16 Comment #3
Sure, I will add those to the docs..
Submitted by Issues on Thu, 11/26/2009 - 17:20 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.