openSUSE 12.1+ no longer uses php5

This commit is contained in:
Ralf Becker 2012-06-14 12:35:51 +00:00
parent 1071e2b862
commit d82ebe015c

View File

@ -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';