mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-16 00:12:16 +03:00
22 lines
490 B
Python
22 lines
490 B
Python
|
#!/usr/bin/python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
from base.plugin.abstract_plugin import AbstractPlugin
|
||
|
|
||
|
|
||
|
class Init(AbstractPlugin):
|
||
|
def __init__(self, context):
|
||
|
super(Init, self).__init__()
|
||
|
self.context = context
|
||
|
self.logger = self.get_logger()
|
||
|
|
||
|
def handle_mode(self):
|
||
|
if self.is_installed('chkconfig') is False:
|
||
|
self.install_with_apt_get('chkconfig')
|
||
|
pass
|
||
|
|
||
|
|
||
|
def handle_mode(context):
|
||
|
init = Init(context)
|
||
|
init.handle_mode()
|