Cleanup
This commit is contained in:
		
							parent
							
								
									7dc89a8233
								
							
						
					
					
						commit
						1791906d06
					
				
							
								
								
									
										7
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								app.js
									
									
									
									
									
								
							@ -45,12 +45,15 @@ function buildCmd() {
 | 
			
		||||
        if (document.getElementById("extMod").checked === true) {
 | 
			
		||||
            script += "git clone https://github.com/google/ngx_brotli.git\n" +
 | 
			
		||||
            "git clone https://github.com/openresty/headers-more-nginx-module.git\n" +
 | 
			
		||||
            "cd ngx_brotli/ && git submodule update --init && cd ../" + extractNginxVersion(nginxStr).replace(/\.tar\.gz$/, '') + "/\n";
 | 
			
		||||
            "cd ngx_brotli/\n" +
 | 
			
		||||
            "git submodule update --init\n" +
 | 
			
		||||
            "cd ../" + extractNginxVersion(nginxStr).replace(/\.tar\.gz$/, '') + "/\n";
 | 
			
		||||
        } else {
 | 
			
		||||
            script += "cd " + extractNginxVersion(nginxStr).replace(/\.tar\.gz$/, '') + "\n";
 | 
			
		||||
        }
 | 
			
		||||
        script += "cp -r conf /etc/nginx\n" +
 | 
			
		||||
        "mkdir /var/cache/nginx && chown www-data:www-data /var/cache/nginx\n" +
 | 
			
		||||
        "mkdir /var/cache/nginx\n" +
 | 
			
		||||
        "chown www-data:www-data /var/cache/nginx\n" +
 | 
			
		||||
        getConfigureStr() + "\n" +
 | 
			
		||||
        "make\n" +
 | 
			
		||||
        "make install\n" +
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user