--- doc/install/linux/install.pl 2024/08/01 12:56:58 1.94 +++ doc/install/linux/install.pl 2024/08/05 13:36:59 1.95 @@ -78,7 +78,7 @@ if (!open(LOG,">>loncapa_install.log")) &mt('Stopping execution.')."\n"; exit; } else { - print LOG '$Id: install.pl,v 1.94 2024/08/01 12:56:58 raeburn Exp $'."\n"; + print LOG '$Id: install.pl,v 1.95 2024/08/05 13:36:59 raeburn Exp $'."\n"; } # @@ -732,7 +732,7 @@ sub check_mysql_running { $proc_owner = 'mysql'; $process = 'mysqld'; } - if ($1 >= 15) { + if ($1 >= 12) { $mysqldaemon ='mariadb'; } } elsif ($distro =~ /^suse(\d+)/) { @@ -818,9 +818,15 @@ sub chkconfig { $uses_systemctl{'ntp'} = 1; $uses_systemctl{'cups'} = 1; $uses_systemctl{'memcached'} = 1; - if (($name eq 'sles') && ($num >= 15)) { - $daemon{'ntp'} = 'chronyd'; - $daemon{'mysql'} = 'mariadb'; + if ($name eq 'sles') { + if ($num >= 12) { + $daemon{'mysql'} = 'mariadb'; + } + if ($num >= 15) { + $daemon{'ntp'} = 'chronyd'; + } else { + $daemon{'ntp'} = 'ntpd'; + } } else { $daemon{'ntp'} = 'ntpd'; } @@ -850,7 +856,7 @@ sub chkconfig { (($distro =~ /^debian/) && ($version >= 10))) { $daemon{'ntp'} = 'chrony'; } - if (($distro =~ /^debian/) && ($version >= 11)) { + if (($distro =~ /^debian/) && ($version >= 10)) { $daemon{'mysql'} = 'mariadb'; } } elsif ($distro =~ /^fedora(\d+)/) {