<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _setup_server():
 """Checks whether the server needs to be setup if a repo is being installed. If it does, checks whether anything needs to be done. """

    if args["setup"] or args["install"]:
        #If the cron has been configured, it means that the server has been
        #setup. We also perform some checks of the configuration file and the
        #existence of the virtualenv.
        if not _check_global_settings() or not _check_virtualenv():
            return False

        _cron_profile()
        if "cron" in db and not db["cron"]:
            _setup_crontab()

    if args["rollback"]:
        _setup_crontab()