diff options
author | Christian Rößler | 2019-10-28 18:18:47 +0100 |
---|---|---|
committer | Christian Rößler | 2019-10-28 18:18:47 +0100 |
commit | 6100e2467db8abab05fd4651e29720b5eda43a67 (patch) | |
tree | 017931e729a953c28b49277b4b59310cd93bf8ab | |
parent | [SSPS] Read config from config.php (diff) | |
download | setup-scripts-6100e2467db8abab05fd4651e29720b5eda43a67.tar.gz setup-scripts-6100e2467db8abab05fd4651e29720b5eda43a67.tar.xz setup-scripts-6100e2467db8abab05fd4651e29720b5eda43a67.zip |
[SSPS] Quick hack for phi ini file detection
-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 |