From f84b752058615c42ac495a427ae80b72ea2384ef Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 10 Apr 2026 12:03:20 +0000 Subject: [PATCH] Add zip installation prompt in app defaults Added a prompt for installing zip if not found. --- app/call_recordings/app_defaults.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/call_recordings/app_defaults.php b/app/call_recordings/app_defaults.php index f7f6b3a16..5ccae9831 100644 --- a/app/call_recordings/app_defaults.php +++ b/app/call_recordings/app_defaults.php @@ -2,7 +2,15 @@ if ($domains_processed == 1) { - //build the array + // Prompt to Install Zip + $ffmpeg_path = shell_exec('which zip'); + if (empty($ffmpeg_path)) { + echo "Please install zip\n"; + echo "On Debian / Ubuntu Linux install zip with this command.\n"; + echo "apt install zip\n"; + } + + // Load the email template $x = 0; $array['email_templates'][$x]['email_template_uuid'] = 'e591db34-0f35-47a5-aaa0-23e7285a0d7e'; $array['email_templates'][$x]['template_language'] = 'en-us';