From 9df2df7e4d4e40360acb00c677c8abe5966a9640 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 26 Mar 2013 08:42:12 -0400
Subject: [PATCH] Fixed: FS#2777 - postmap not executed on virtual mailman file when a mailinglist has been created

---
 server/lib/classes/system.inc.php |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/server/lib/classes/system.inc.php b/server/lib/classes/system.inc.php
index c10e6ff..1de54e2 100644
--- a/server/lib/classes/system.inc.php
+++ b/server/lib/classes/system.inc.php
@@ -1537,6 +1537,13 @@
             return intval($string);
         }
     }
+	
+	function is_mounted($mountpoint){
+		//$cmd = 'df 2>/dev/null | grep " '.$mountpoint.'$"';
+		$cmd = 'mount 2>/dev/null | grep " on '.$mountpoint.' type "';
+		exec($cmd, $output, $return_var);
+		return $return_var == 0 ? true : false; 
+	}
 
 }
 ?>

--
Gitblit v1.9.1