def rkhunter(caller='console_script'):
    """
    Summary:
        - Console Script target for rkhunter installer
        - Called from either invoking console script "rkinstaller" directly,
          or metal with the --install rkhunter parameter
    Returns:
        Success | Failure, TYPE: bool
    """
    if caller == 'console_script':
        cmd = 'sudo sh rkinstaller.sh ' + parameters(sys.argv[1:])
    else:
        cmd = 'sudo sh rkinstaller.sh ' + parameters(sys.argv[3:])
    try:
        subprocess.call(
                [cmd],
                shell=True,
                cwd=module_path() + '/' + 'rkhunter'
            )
    except Exception as e:
        logger.exception(f'{inspect.stack()[0][3]}: invalid rkhunter installer args. Exit')
        return False
    return True
def rkhunter ( caller = 'console_script' ) : if caller == 'console_script' : cmd = 'sudo sh rkinstaller.sh ' + parameters ( sys . argv [ 1 : ] ) else : cmd = 'sudo sh rkinstaller.sh ' + parameters ( sys . argv [ 3 : ] ) try : subprocess . call ( [ cmd ] , shell = True , cwd = module_path ( ) + '/' + 'rkhunter' ) except Exception as e : logger . exception ( f'{inspect.stack()[0][3]}: invalid rkhunter installer args. Exit' ) return False return True
Summary:
        - Console Script target for rkhunter installer
        - Called from either invoking console script "rkinstaller" directly,
          or metal with the --install rkhunter parameter
    Returns:
        Success | Failure, TYPE: bool