i worked through tutorial , modified table adding column. want check value before adding template script. didn't work , script includes template-ssl every time. important script works mysql, mass vhosts not possible.
$my::dir = @row[3]; $my::encrypted = @row[4]; if ($my::encrypted == 'ssl') { $s->add_config(["include /etc/apache2/sites-available/template-ssl"]); } else { $s->add_config(["include /etc/apache2/sites-available/template-def"]); }
i think variables doesn't work if(@row[4] == "ssl")
fire true every time. when datarow contains "def".
ok, simple. error compare stings "xx" eq "yy"
, numbers 1 == 2
.