From 5e43b353e9cf09030bcce73f0d643ba03034a0dc Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Wed, 9 May 2018 13:27:27 +0200
Subject: [PATCH] Add requirement for patch command.

---
 install/install.php | 2 ++
 install/update.php  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/install/install.php b/install/install.php
index 50e19e943e..d2aaf6087c 100644
--- a/install/install.php
+++ b/install/install.php
@@ -97,6 +97,8 @@ require_once 'lib/classes/tpl.inc.php';
     die('We will stop here. There is already a ISPConfig installation, use the update script to update this installation.');
 }*/
 
+if(!is_installed('patch')) die('The patch command is missing. Install patch command and start installation again.');
+
 //** Get distribution identifier
 $dist = get_distname();
 
diff --git a/install/update.php b/install/update.php
index 53a2f73425..360d88bff3 100644
--- a/install/update.php
+++ b/install/update.php
@@ -98,6 +98,8 @@ if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
 	die('This software cannot be installed on a server wich runs ISPConfig 2.x.');
 }
 
+if(!is_installed('patch')) die('The patch command is missing. Install patch command and start installation again.');
+
 //** Get distribution identifier
 $dist = get_distname();
 
-- 
GitLab