diff --git a/auto.sh b/auto.sh index d667666..0753089 100755 --- a/auto.sh +++ b/auto.sh @@ -35,7 +35,7 @@ else fi ### PSOL Download (PageSpeed) -if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = "y" ]; then +if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = 1 ]; then ### Download pagespeed cd lib wget -c https://github.com/apache/incubator-pagespeed-ngx/archive/v1.13.35.2-stable.zip @@ -66,23 +66,23 @@ else fi ### Module check -if [ "$PAGESPEED" = "y" ]; then +if [ "$PAGESPEED" = 1 ]; then BUILD_MODULES="--add-module=./lib/pagespeed ${PS_NGX_EXTRA_FLAGS}" fi -if [ "$RTMP" = "y" ]; then +if [ "$RTMP" = 1 ]; then BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-rtmp-module" fi -if [ "$NAXSI" = "y" ]; then +if [ "$NAXSI" = 1 ]; then BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/naxsi/naxsi_src" fi -if [ "$DAV_EXT" = "y" ]; then +if [ "$DAV_EXT" = 1 ]; then BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/nginx-dav-ext-module" fi -if [ "$FANCYINDEX" = "y" ]; then +if [ "$FANCYINDEX" = 1 ]; then BUILD_MODULES="${BUILD_MODULES} --add-module=./lib/ngx-fancyindex" fi diff --git a/config.inc b/config.inc index 18a62f9..cc99e93 100644 --- a/config.inc +++ b/config.inc @@ -13,29 +13,31 @@ SERVER_HEADER="hakase" ### x86, x64 check ### If you do not want optimization, uncomment it. ### (Comment out existing sources.) +### Do not modify it under normal circumstances. BITCHK=`getconf LONG_BIT` #BITCHK="32" ### Multithread build +### Do not modify it under normal circumstances. BUILD_MTS="-j$(expr $(nproc) \+ 1)" ######################### ### Select add module ### ######################### -### If you do not want to build modules, please enter a value other than "y". +### Enter 0 for the module that is not to be used. ### PageSpeed -PAGESPEED="y" +PAGESPEED=1 ### nginx-rtmp-module -RTMP="y" +RTMP=1 ### naxsi -NAXSI="y" +NAXSI=1 ### nginx-dav-ext-module -DAV_EXT="y" +DAV_EXT=1 ### fancyindex -FANCYINDEX="y" +FANCYINDEX=1