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()
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)
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' ) sys.exit()