Check for zip installation in CLI context

This commit is contained in:
FusionPBX
2026-04-11 18:05:11 +00:00
committed by GitHub
parent ddf2fe53c7
commit 8084d95810
+7 -5
View File
@@ -3,11 +3,13 @@
if ($domains_processed == 1) { if ($domains_processed == 1) {
// Prompt to Install Zip // Prompt to Install Zip
$ffmpeg_path = shell_exec('which zip'); if (PHP_SAPI === 'cli') {
if (empty($ffmpeg_path)) { $ffmpeg_path = shell_exec('which zip');
echo "Please install zip\n"; if (empty($ffmpeg_path)) {
echo "On Debian / Ubuntu Linux install zip with this command.\n"; echo "Please install zip\n";
echo "apt install zip\n"; echo "On Debian / Ubuntu Linux install zip with this command.\n";
echo "apt install zip\n";
}
} }
// Load the email template // Load the email template