We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f1acc commit 0dcdbd5Copy full SHA for 0dcdbd5
func/main.sh
@@ -1064,4 +1064,18 @@ check_hestia_demo_mode() {
1064
echo "ERROR: Unable to perform operation due to security restrictions that are in place."
1065
exit 1
1066
fi
1067
-}
+}
1068
+
1069
+multiphp_count() {
1070
+ echo $(ls -d /etc/php/*/fpm/pool.d 2>/dev/null |wc -l)
1071
1072
1073
+multiphp_versions() {
1074
+ if [ "$(multiphp_count)" -gt 0 ] ; then
1075
+ for php_ver in $(ls /etc/php/); do
1076
+ [ ! -d "/etc/php/$php_ver/fpm/pool.d/" ] && continue
1077
+ echo -n "$php_ver "
1078
+ done
1079
+ echo -en '\n'
1080
+ fi
1081
0 commit comments