This commit is contained in:
Steven Tracey 2023-12-20 10:25:53 -06:00
parent 7dc89a8233
commit 1791906d06

7
app.js
View File

@ -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" +