def init(self, core): ConfigServiceComponent.init(self, core) UseCertificateComponent.init(self, core) self.core = core try: self.sharedir = self.core.config.get('CORE', 'sharedir') except: self.sharedir = DEFAULT_SHAREDIR self.script_dir = os.path.join(self.sharedir, 'scripts') self.addConfFile(_NUAUTH_CONF, 'root:root', '0644') self.addConfFile('/etc/nufw/nuauth.d/nuauth_tls.conf', 'root:root', '0644') self.addConfFile('/etc/nufw/user-down.sh', 'root:root', '0755') self.addConfFile('/etc/nufw/user-up.sh', 'root:root', '0755')
def init(self, core): UseCertificateComponent.init(self, core) self.core = core
def __init__(self): Component.__init__(self) UseCertificateComponent.__init__(self)
def __init__(self): ConfigServiceComponent.__init__(self) UseCertificateComponent.__init__(self)
def init(self, core): UseCertificateComponent.init(self, core) self.context = Context.fromComponent(self) for filename in self.CONF_FILES: self.addConfFile(filename, 'root:root', '0644') ConfigServiceComponent.init(self, core)
def __init__(self): ConfigServiceComponent.__init__(self) UseCertificateComponent.__init__(self) self.openvpn_cfg = self.context = self.core = None