|  | @@ -7,6 +7,7 @@ package routers
 | 
	
		
			
				|  |  |  import (
 | 
	
		
			
				|  |  |  	"errors"
 | 
	
		
			
				|  |  |  	"os"
 | 
	
		
			
				|  |  | +	"os/exec"
 | 
	
		
			
				|  |  |  	"strings"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	"github.com/Unknwon/goconfig"
 | 
	
	
		
			
				|  | @@ -103,6 +104,11 @@ func Install(ctx *middleware.Context, form auth.InstallForm) {
 | 
	
		
			
				|  |  |  		return
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +	if _, err := exec.LookPath("git"); err != nil {
 | 
	
		
			
				|  |  | +		ctx.RenderWithErr("Fail to test 'git' command: "+err.Error(), "install", &form)
 | 
	
		
			
				|  |  | +		return
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	// Pass basic check, now test configuration.
 | 
	
		
			
				|  |  |  	// Test database setting.
 | 
	
		
			
				|  |  |  	dbTypes := map[string]string{"mysql": "mysql", "pgsql": "postgres", "sqlite": "sqlite3"}
 |