diff options
-rw-r--r-- | satellit_installer/includes/10-configurations.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/satellit_installer/includes/10-configurations.inc b/satellit_installer/includes/10-configurations.inc index b6fe243..25a57c1 100644 --- a/satellit_installer/includes/10-configurations.inc +++ b/satellit_installer/includes/10-configurations.inc @@ -59,7 +59,12 @@ patch_lighttpd_config() { patch_php_config() { echo -n "# Patching php configuration... " - local PHPINIFILE=/etc/php/7.0/cgi/php.ini + + if [ $(ls -d /etc/php/*/|wc -l) -eq 1 ]; then + local PHPINIFILE="$(ls -d /etc/php/*/)/cgi/php.ini" + fi + pwarning "No php ini file found - or more than one." + fi if [ -f "$PHPINIFILE" ]; then grep -E "^\s*upload_max_filesize" "$PHPINIFILE" # 2>/dev/null 1>&2 |