https://bugs.koozali.org/show_bug.cgi?id=12298
--- Comment #10 from Jean-Philippe Pialasse <te...@pialasse.com> ---
this seems the cleanest, fastest and shortest I can do in perl.
{
$OUT="/usr/bin/php74";
$version="24";
$search=qr/\s*'version'\s*=>\s*'([0-9]{2})\.[0-9]{1,2}.*/;
if ( open NC, "</usr/share/nextcloud/config/config.php") {
map {$version = $1 if /$search/ } <NC>;
close NC;
}
$OUT="/usr/bin/php81" if $version >= 25;
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/