only runs php5enmod if binary exists
[tine20] / scripts / packaging / debian / tine20-tinebase.postinst
index 863ca15..ecaab7b 100644 (file)
@@ -27,7 +27,7 @@ if [ "$1" = "configure" ]; then
         fi
         
         # enable mcrypt if not already done
-        if [ ! -f /etc/php5/apache2/conf.d/20-mcrypt.ini ]; then
+        if [ ! -f /etc/php5/apache2/conf.d/20-mcrypt.ini ] && [ -x /usr/sbin/php5enmod ]; then
             php5enmod mcrypt
         fi
     fi