Check for zip installation in CLI context
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user