예제 #1
0
 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')
예제 #2
0
 def init(self, core):
     UseCertificateComponent.init(self, core)
     self.core = core
예제 #3
0
 def __init__(self):
     Component.__init__(self)
     UseCertificateComponent.__init__(self)
예제 #4
0
 def __init__(self):
     ConfigServiceComponent.__init__(self)
     UseCertificateComponent.__init__(self)
예제 #5
0
파일: openvpn.py 프로젝트: maximerobin/Ufwi
 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)
예제 #6
0
파일: openvpn.py 프로젝트: maximerobin/Ufwi
 def __init__(self):
     ConfigServiceComponent.__init__(self)
     UseCertificateComponent.__init__(self)
     self.openvpn_cfg = self.context = self.core = None