code: def _setup_server():
      
      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()
docs: Checks whether the server needs to be setup if a repo is being installed.
      If it does, checks whether anything needs to be done.