Exemple #1
0
def install():
    check_python_version()
    args = _setup_argparser()
    _setup_logging(args.log_level, args.log_file, debug_flag=args.debug)
    welcome()
    distribution = check_distribution()
    none_chosen = not (args.frontend or args.db or args.backend)

    installation_directory = get_directory_of_current_file() / 'install'

    with OperateInDirectory(str(installation_directory)):
        common(distribution)

        if args.frontend or none_chosen:
            frontend(not args.no_radare, args.nginx)
        if args.db or none_chosen:
            db(distribution)
        if args.backend or none_chosen:
            backend(distribution)

    if args.statistic_cronjob:
        install_statistic_cronjob()

    logging.info('installation complete')
    logging.warning('If FACT does not start, reload the environment variables with: source /etc/profile')

    sys.exit()
Exemple #2
0
def install_fact_components(args, distribution, none_chosen, skip_docker):
    common(distribution)
    if args.frontend or none_chosen:
        frontend(skip_docker, not args.no_radare, args.nginx, distribution)
    if args.db or none_chosen:
        db(distribution)
    if args.backend or none_chosen:
        backend(skip_docker, distribution)
Exemple #3
0
def main():
    check_python_version()
    args = _setup_argparser()
    _setup_logging(debug_flag=args.debug)
    distribution = check_distribution()

    logging.info('{} {}'.format(PROGRAM_NAME, PROGRAM_VERSION))
    installation_directory = str(Path(__file__).parent / 'install')

    with OperateInDirectory(installation_directory):
        common(distribution)
        unpacker(distribution)

    logging.info('installation complete')
Exemple #4
0
        logging.info('done')


if __name__ == '__main__':
    check_python_version()
    args = _setup_argparser()
    _setup_logging(args, debug_flag=args.debug)
    welcome()
    distribution = check_distribution()
    none_chosen = not (args.frontend or args.db or args.backend)

    installation_directory = str(
        Path(Path(__file__).parent, 'install').absolute())

    with OperateInDirectory(installation_directory):
        common(distribution)

        if args.frontend or none_chosen:
            frontend(not args.no_radare, args.nginx)
        if args.db or none_chosen:
            db(distribution)
        if args.backend or none_chosen:
            backend()

    if args.statistic_cronjob:
        install_statistic_cronjob()

    logging.info('installation complete')
    logging.warning(
        'If FACT does not start, reload the environment variables with: source /etc/profile'
    )