updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / zsce-core / install.patch
blob61beb8ceaa42ac7400e42394187e43ee823fcb8a
1 --- ./install.sh
2 +++ ./install-patched.sh
3 @@ -20,31 +20,32 @@
4 WEB_GID=`id -g daemon`
5 RC_FILE=/etc/zce.rc
6 ZEND_USER=zend
7 -if [ "$1" = '-g' ];then
8 - PREFIX=/usr/local
9 -else
10 - echo "Welcome to $PRODUCT_NAME installation script!"
11 - echo "Please specify an installation path [/usr/local]:"
12 - read -e PREFIX
13 - if [ -z $PREFIX ];then
14 - PREFIX="/usr/local"
15 - fi
16 -fi
17 +#if [ "$1" = '-g' ];then
18 +# PREFIX=/usr/local
19 +#else
20 +# echo "Welcome to $PRODUCT_NAME installation script!"
21 +# echo "Please specify an installation path [/usr/local]:"
22 +# read -e PREFIX
23 +# if [ -z $PREFIX ];then
24 +# PREFIX="/usr/local"
25 +# fi
26 +#fi
27 +PREFIX="/opt"
28 if [ ! -d ${PREFIX} ];then
29 mkdir -p ${PREFIX}
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
36 -if [ $? -ne 0 ];then
37 - echo "Failed to extract files.. "
38 - exit 1
39 -fi
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.. "
46 +# exit 1
47 +#fi
48 . ${ZCE_PREFIX}/bin/shell_functions.rc
49 groupadd $ZEND_USER
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.."
54 exit 1
55 @@ -135,13 +136,13 @@
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
62 ldconfig
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"