#!/bin/sh
if !(grep -q "^extension = posix" /etc/php/conf.d/extensions.ini)
then
   /bin/sed -i -e "s~;extension = posix.so~extension = posix.so~" /etc/php/conf.d/extensions.ini
   echo -e "PHP-extension 'posix' had been enabled for Z-Push to work. -Please verify." >> $SYNOPKG_TEMP_LOGFILE
fi

SPDY_ON=`ps | grep '/usr/bin/httpd -DSSL -DSPDY' | grep -v 'grep' | grep -v '\-f'`
if [ "$SPDY_ON" != "" ]
then
   echo "Found procs: $SPDY_ON"
   echo -e "You seem to have SLL-SPDY running which is incompatible with Z-Push sending pictures and attachments. -Please disable it via control-panel=>webservices=>SPDY. Found processes [$SPDY_ON]" >> $SYNOPKG_TEMP_LOGFILE
fi

exit 0
