e-smith-email/root/etc/e-smith/db/configuration/migrate/40change-variable-access-to-httpsonly

15 lines
395 B
Plaintext

{
my $hordessl = $DB->get_prop('horde', 'access') or return;
if ($hordessl eq 'SSL')
{
$DB->set_prop('horde',"HttpsOnly", "yes" );
$DB->set_prop('horde',"access", "public" );
}
elsif ($hordessl eq 'full')
{
$DB->set_prop('horde',"HttpsOnly", "no" );
$DB->set_prop('horde',"access", "public" );
}
}