diff --git a/apps/php7/7.0.33/build/config.json b/apps/php7/7.0.33/build/config.json index bd0f9e830..e2e5d85d7 100644 --- a/apps/php7/7.0.33/build/config.json +++ b/apps/php7/7.0.33/build/config.json @@ -121,6 +121,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php7/7.0.33/build/php/extensions/install.sh b/apps/php7/7.0.33/build/php/extensions/install.sh index 8ad09f525..7e2f5fed3 100644 --- a/apps/php7/7.0.33/build/php/extensions/install.sh +++ b/apps/php7/7.0.33/build/php/extensions/install.sh @@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then echo "---------- Install imagick ----------" install-php-extensions imagick fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi # end diff --git a/apps/php7/7.1.33/build/config.json b/apps/php7/7.1.33/build/config.json index bd0f9e830..e2e5d85d7 100644 --- a/apps/php7/7.1.33/build/config.json +++ b/apps/php7/7.1.33/build/config.json @@ -121,6 +121,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php7/7.1.33/build/php/extensions/install.sh b/apps/php7/7.1.33/build/php/extensions/install.sh index 8ad09f525..7e2f5fed3 100644 --- a/apps/php7/7.1.33/build/php/extensions/install.sh +++ b/apps/php7/7.1.33/build/php/extensions/install.sh @@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then echo "---------- Install imagick ----------" install-php-extensions imagick fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi # end diff --git a/apps/php7/7.2.34/build/config.json b/apps/php7/7.2.34/build/config.json index bd0f9e830..e2e5d85d7 100644 --- a/apps/php7/7.2.34/build/config.json +++ b/apps/php7/7.2.34/build/config.json @@ -121,6 +121,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php7/7.2.34/build/php/extensions/install.sh b/apps/php7/7.2.34/build/php/extensions/install.sh index 8ad09f525..1034f812d 100644 --- a/apps/php7/7.2.34/build/php/extensions/install.sh +++ b/apps/php7/7.2.34/build/php/extensions/install.sh @@ -83,8 +83,12 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then echo "---------- Install imagick ----------" install-php-extensions imagick fi -# end +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi +# end if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then echo "---------- Install pdo_mysql ----------" diff --git a/apps/php7/7.3.33/build/config.json b/apps/php7/7.3.33/build/config.json index bd0f9e830..e2e5d85d7 100644 --- a/apps/php7/7.3.33/build/config.json +++ b/apps/php7/7.3.33/build/config.json @@ -121,6 +121,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php7/7.3.33/build/php/extensions/install.sh b/apps/php7/7.3.33/build/php/extensions/install.sh index 8ad09f525..7e2f5fed3 100644 --- a/apps/php7/7.3.33/build/php/extensions/install.sh +++ b/apps/php7/7.3.33/build/php/extensions/install.sh @@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then echo "---------- Install imagick ----------" install-php-extensions imagick fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi # end diff --git a/apps/php7/7.4.33/build/config.json b/apps/php7/7.4.33/build/config.json index bd0f9e830..e2e5d85d7 100644 --- a/apps/php7/7.4.33/build/config.json +++ b/apps/php7/7.4.33/build/config.json @@ -121,6 +121,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php7/7.4.33/build/php/extensions/install.sh b/apps/php7/7.4.33/build/php/extensions/install.sh index 8ad09f525..7e2f5fed3 100644 --- a/apps/php7/7.4.33/build/php/extensions/install.sh +++ b/apps/php7/7.4.33/build/php/extensions/install.sh @@ -83,6 +83,11 @@ if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then echo "---------- Install imagick ----------" install-php-extensions imagick fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi # end diff --git a/apps/php8/8.0.28/build/config.json b/apps/php8/8.0.28/build/config.json index 50cf57751..4906dcf82 100644 --- a/apps/php8/8.0.28/build/config.json +++ b/apps/php8/8.0.28/build/config.json @@ -117,6 +117,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php8/8.0.28/build/php/extensions/install.sh b/apps/php8/8.0.28/build/php/extensions/install.sh index 8a3bbbaf7..c8e284a6a 100644 --- a/apps/php8/8.0.28/build/php/extensions/install.sh +++ b/apps/php8/8.0.28/build/php/extensions/install.sh @@ -72,6 +72,23 @@ installExtensionFromTgz() docker-php-ext-enable ${extensionName} } +# install use install-php-extensions +if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then + echo "---------- Install ioncube_loader ----------" + install-php-extensions ioncube_loader +fi + +if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then + echo "---------- Install imagick ----------" + install-php-extensions imagick +fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi +# end + if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then echo "---------- Install pdo_mysql ----------" @@ -208,16 +225,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then docker-php-ext-enable hprose fi -if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then - echo "---------- Install ioncube_loader ----------" - install-php-extensions ioncube_loader -fi - -if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then - echo "---------- Install imagick ----------" - install-php-extensions imagick -fi - if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then echo "---------- Install gd ----------" isPhpVersionGreaterOrEqual 8 0 diff --git a/apps/php8/8.1.18/build/config.json b/apps/php8/8.1.18/build/config.json index 50cf57751..4906dcf82 100644 --- a/apps/php8/8.1.18/build/config.json +++ b/apps/php8/8.1.18/build/config.json @@ -117,6 +117,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php8/8.1.18/build/php/extensions/install.sh b/apps/php8/8.1.18/build/php/extensions/install.sh index 8a3bbbaf7..9bf470e3d 100644 --- a/apps/php8/8.1.18/build/php/extensions/install.sh +++ b/apps/php8/8.1.18/build/php/extensions/install.sh @@ -73,6 +73,24 @@ installExtensionFromTgz() } +# install use install-php-extensions +if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then + echo "---------- Install ioncube_loader ----------" + install-php-extensions ioncube_loader +fi + +if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then + echo "---------- Install imagick ----------" + install-php-extensions imagick +fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi +# end + + if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then echo "---------- Install pdo_mysql ----------" docker-php-ext-install ${MC} pdo_mysql @@ -208,16 +226,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then docker-php-ext-enable hprose fi -if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then - echo "---------- Install ioncube_loader ----------" - install-php-extensions ioncube_loader -fi - -if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then - echo "---------- Install imagick ----------" - install-php-extensions imagick -fi - if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then echo "---------- Install gd ----------" isPhpVersionGreaterOrEqual 8 0 diff --git a/apps/php8/8.2.5/build/config.json b/apps/php8/8.2.5/build/config.json index 50cf57751..4906dcf82 100644 --- a/apps/php8/8.2.5/build/config.json +++ b/apps/php8/8.2.5/build/config.json @@ -117,6 +117,10 @@ { "label": "sg11", "value": "sourceguardian" + }, + { + "label": "imagick", + "value": "imagick" } ], "envKey": "PHP_EXTENSIONS", diff --git a/apps/php8/8.2.5/build/php/extensions/install.sh b/apps/php8/8.2.5/build/php/extensions/install.sh index 8a3bbbaf7..c8e284a6a 100644 --- a/apps/php8/8.2.5/build/php/extensions/install.sh +++ b/apps/php8/8.2.5/build/php/extensions/install.sh @@ -72,6 +72,23 @@ installExtensionFromTgz() docker-php-ext-enable ${extensionName} } +# install use install-php-extensions +if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then + echo "---------- Install ioncube_loader ----------" + install-php-extensions ioncube_loader +fi + +if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then + echo "---------- Install imagick ----------" + install-php-extensions imagick +fi + +if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then + echo "---------- Install sourceguardian ----------" + install-php-extensions sourceguardian +fi +# end + if [[ -z "${EXTENSIONS##*,pdo_mysql,*}" ]]; then echo "---------- Install pdo_mysql ----------" @@ -208,16 +225,6 @@ if [[ -z "${EXTENSIONS##*,hprose,*}" ]]; then docker-php-ext-enable hprose fi -if [[ -z "${EXTENSIONS##*,ioncube_loader,*}" ]]; then - echo "---------- Install ioncube_loader ----------" - install-php-extensions ioncube_loader -fi - -if [[ -z "${EXTENSIONS##*,imagick,*}" ]]; then - echo "---------- Install imagick ----------" - install-php-extensions imagick -fi - if [[ -z "${EXTENSIONS##*,gd,*}" ]]; then echo "---------- Install gd ----------" isPhpVersionGreaterOrEqual 8 0