Add support for pre-installed PHP

This commit is contained in:
Shivam Mathur committed 2024-12-23 16:04:30 +05:30
1 parent b6d8115f12
commit da729085ef
5 files changed
+25

No files matched your search

+13
View File
@@ -184,6 +184,19 @@ self_hosted_setup() {
fi
}
# Function to check pre-installed PHP
check_pre_installed() {
if [ "$version" = "pre" ]; then
if [ -n "$php_config" ]; then
version="$(php_semver | cut -c 1-3)"
update=false
else
fail_fast=true
add_log "$cross" "PHP" "No pre-installed PHP version found"
fi
fi
}
# Function to configure PHP
configure_php() {
add_php_config