From ac1567f50dd5b12158194d426578103c1150185a Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 20 Aug 2020 11:03:19 +0200 Subject: [PATCH] added php-fpm --- CoreModules/nginx/reqmodules.sh | 1 + SubModules/php-fpm/conf.sh | 1 + installer.sh | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 CoreModules/nginx/reqmodules.sh create mode 100644 SubModules/php-fpm/conf.sh diff --git a/CoreModules/nginx/reqmodules.sh b/CoreModules/nginx/reqmodules.sh new file mode 100644 index 0000000..ae87c0f --- /dev/null +++ b/CoreModules/nginx/reqmodules.sh @@ -0,0 +1 @@ +aonoption="$aonoption php-fpm" \ No newline at end of file diff --git a/SubModules/php-fpm/conf.sh b/SubModules/php-fpm/conf.sh new file mode 100644 index 0000000..f39cf39 --- /dev/null +++ b/SubModules/php-fpm/conf.sh @@ -0,0 +1 @@ +echo "phpfpmmod" > /root/phpwashere \ No newline at end of file diff --git a/installer.sh b/installer.sh index 2a4b538..ff92615 100644 --- a/installer.sh +++ b/installer.sh @@ -370,6 +370,12 @@ echo 'SelectedOptions=('$option')' > /etc/ICTM/selopts.list #Cleaning options from menu option="${option,,}" && option="${option// /}" && option="${option//:/ }" && option="${option//'"'}" + +#enableing modules wanted by webserver +if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/conf.sh; then + source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/reqmodules.sh) +fi + #Combining selected option with always-on options option="$option""$aonoption"