From 6100e2467db8abab05fd4651e29720b5eda43a67 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Mon, 28 Oct 2019 18:18:47 +0100 Subject: [SSPS] Quick hack for phi ini file detection --- satellit_installer/includes/10-configurations.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522