Variable to find template name?

3 posts / 0 new
Last post
#1 Thu, 10/03/2013 - 06:18
hannahcarter

Variable to find template name?

Hi,

I was wondering if there was a variable for the template name, for when you create a VHost? I only want to run scripts when hosts with certain templates are generated.

Cheers, Hannah

Thu, 10/03/2013 - 10:02
andreychek

Howdy,

Unfortunately, I don't think that's currently an option.... but I can talk to Jamie and see about adding that for a future release.

-Eric

Thu, 10/03/2013 - 10:22
hannahcarter

Ah fair enough, yeah I thought so. I got around it by assigning a group to every user created with that template, and in the bash script running a regex to find that group. Seems to be working well :)

Cheers,

Hannah

Topic locked