(_request: WSGIRequest)
return HttpResponse("Upgrading... Look for logs in /var/www/")
Performs an upgrade of raveberry.
Performs an upgrade of raveberry.
Performs an upgrade of raveberry .
def upgrade_raveberry(_request: WSGIRequest) -> HttpResponse:
    """Performs an upgrade of raveberry."""

    subprocess.call(["sudo", "/usr/local/sbin/raveberry/start_upgrade_service"])

    return HttpResponse("Upgrading... Look for logs in /var/www/")
def upgrade_raveberry ( _request : WSGIRequest ) -> HttpResponse : subprocess . call ( [ "sudo" , "/usr/local/sbin/raveberry/start_upgrade_service" ] ) return HttpResponse ( "Upgrading... Look for logs in /var/www/" )