All pastes #923183 Raw Edit

ebox setPort

public text v1 · immutable
#923183 ·published 2008-02-29 10:03 UTC
rendered paste body
sub _setPort
{

    my ($self) = @_;

    # We can assume the listening port is ready available
    my $generalConf = $self->model('GeneralSettings');

    # Overwrite the listening port conf file
    $self->writeConfFile(CONF_FILE,
                         "chillispot/chillispot.conf.mas",
                         [ authPortNumber => $generalConf->radiusauthportValue(),
                           acctPortNumber => $generalConf->radiusacctportValue() ],
                        )

}