diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2018-10-06 09:03:00 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2018-12-30 12:37:38 +0100 |
commit | 4c2ab9d4f02b5d4b7269042c7e87ed616b3110e8 (patch) | |
tree | affd4f847639d8b2d68050a3676855f9e1a75ede | |
parent | fecd8c3bf9a0acf84528be89bb5825bc35e06834 (diff) | |
download | pykolab-4c2ab9d4f02b5d4b7269042c7e87ed616b3110e8.tar.gz |
Add php 7.0 and 7.2 support for timezone setup
-rw-r--r-- | pykolab/setup/setup_php.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pykolab/setup/setup_php.py b/pykolab/setup/setup_php.py index 7eed80d..942d09f 100644 --- a/pykolab/setup/setup_php.py +++ b/pykolab/setup/setup_php.py @@ -84,6 +84,13 @@ def execute(*args, **kw): else: # Search and destroy php_ini = "/etc/php.ini" + + if not os.path.isfile(php_ini): + php_ini = "/etc/php/7.2/apache2/php.ini" + + if not os.path.isfile(php_ini): + php_ini = "/etc/php/7.0/apache2/php.ini" + if not os.path.isfile(php_ini): php_ini = "/etc/php5/apache2/php.ini" |