#!/bin/sh
#the site id is the first argument
siteid="$1"
tar xf /etc/appliance/customization/virtDomain.tar -C /home/virtual/$siteid/fst/
echo "; Enable Zend Extensions
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2_6_0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2_6_0
zend_optimizer.version=2.6.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
" > /home/virtual/$siteid/fst/etc/php.d/zend.ini