2 +++ ./install-patched.sh
7 -if [ "$1" = '-g' ];then
10 - echo "Welcome to $PRODUCT_NAME installation script!"
11 - echo "Please specify an installation path [/usr/local]:"
13 - if [ -z $PREFIX ];then
17 +#if [ "$1" = '-g' ];then
20 +# echo "Welcome to $PRODUCT_NAME installation script!"
21 +# echo "Please specify an installation path [/usr/local]:"
23 +# if [ -z $PREFIX ];then
24 +# PREFIX="/usr/local"
28 if [ ! -d ${PREFIX} ];then
31 ZCE_PREFIX=`readlink -f ${PREFIX}`/${TARGET_DIR}
32 -if [ -d ${ZCE_PREFIX}/apache2/htdocs ];then mv -f ${ZCE_PREFIX}/apache2/htdocs ${ZCE_PREFIX}/apache2/htdocs.bak-`date +%m%d%y`;fi
33 -if [ -d ${ZCE_PREFIX}/etc ];then mv -f ${ZCE_PREFIX}/etc ${ZCE_PREFIX}/etc.bak-`date +%m%d%y`;fi
34 -echo "Extracting files to ${ZCE_PREFIX}..."
35 -`dirname $0`/7z x -o$PREFIX -y `dirname $0`/$TARGET_DIR.7z 1>/dev/null
37 - echo "Failed to extract files.. "
40 +#if [ -d ${ZCE_PREFIX}/apache2/htdocs ];then mv -f ${ZCE_PREFIX}/apache2/htdocs ${ZCE_PREFIX}/apache2/htdocs.bak-`date +%m%d%y`;fi
41 +#if [ -d ${ZCE_PREFIX}/etc ];then mv -f ${ZCE_PREFIX}/etc ${ZCE_PREFIX}/etc.bak-`date +%m%d%y`;fi
42 +#echo "Extracting files to ${ZCE_PREFIX}..."
43 +#`dirname $0`/7z x -o$PREFIX -y `dirname $0`/$TARGET_DIR.7z 1>/dev/null
44 +#if [ $? -ne 0 ];then
45 +# echo "Failed to extract files.. "
48 . ${ZCE_PREFIX}/bin/shell_functions.rc
50 -useradd -d ${ZCE_PREFIX}/gui/lighttpd -s /sbin/nologin -g $ZEND_USER $ZEND_USER 2>/dev/null
51 +useradd -r -m -d ${ZCE_PREFIX}/gui/lighttpd -s /sbin/nologin -g $ZEND_USER $ZEND_USER 2>/dev/null
52 if ! id -g $ZEND_USER > /dev/null 2>&1 ;then
53 echo "Could not create the zend group. This is mandatory for $PRODUCT_NAME to function properly. Aborting installation.."
56 ln -sf ${ZCE_PREFIX}/apache2/logs/access_log ${ZCE_PREFIX}/var/log/access.log
57 # in the event ld scandir is available
58 if [ -d /etc/ld.so.conf.d ];then
59 - echo "/usr/local/zend/lib" > /etc/ld.so.conf.d/zend_server.conf
60 + echo "/opt/zend/lib" > /etc/ld.so.conf.d/zend_server.conf
61 if which ldconfig > /dev/null 2>&1;then
65 -${ZCE_PREFIX}/bin/create_cert.sh
66 -${ZCE_PREFIX}/bin/zendctl.sh start
67 +#${ZCE_PREFIX}/bin/create_cert.sh
68 +#${ZCE_PREFIX}/bin/zendctl.sh start
69 $ECHO_CMD "${OK_COLOR}========================== INSTALLATION SUMMARY ===================================================\n${T_RESET}"
70 $ECHO_CMD " $PRODUCT_NAME was installed to ${ZCE_PREFIX}"
71 $ECHO_CMD " The End User License Agreement [EULA] can be viewed under $ZCE_PREFIX/doc/EULA.txt"