From d82ebe015cf6dd190f66b49241af0ea9cb08d436 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 14 Jun 2012 12:35:51 +0000 Subject: [PATCH] openSUSE 12.1+ no longer uses php5 --- doc/rpm-build/post_install.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 2b2e10328f..e9e8ca9eda 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -92,8 +92,9 @@ function set_distro_defaults($distro=null) switch (($config['distro'] = $distro)) { case 'suse': - $config['php'] = '/usr/bin/php5'; - $config['pear'] = '/usr/bin/pear5'; + // openSUSE 12.1+ no longer uses php5 + if (file_exists('/usr/bin/php5')) $config['php'] = '/usr/bin/php5'; + if (file_exists('/usr/bin/pear5')) $config['pear'] = '/usr/bin/pear5'; $config['start_db'] = '/sbin/service mysql'; $config['autostart_db'] = '/sbin/chkconfig --level 345 mysql on'; $config['start_webserver'] = '/sbin/service apache2';