diff options
Diffstat (limited to 'collab/egroupware/INSTALL')
-rwxr-xr-x | collab/egroupware/INSTALL | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/collab/egroupware/INSTALL b/collab/egroupware/INSTALL new file mode 100755 index 0000000000..395b0ee945 --- /dev/null +++ b/collab/egroupware/INSTALL @@ -0,0 +1,20 @@ +if [ -e ${INSTALL_ROOT}/etc/httpd/httpd.conf ]; then + SPELL_ROOT=`grep '^DocumentRoot' ${INSTALL_ROOT}/etc/httpd/httpd.conf | cut -d\" -f2` +elif [ -e ${INSTALL_ROOT}/etc/httpsd/httpd.conf ]; then + SPELL_ROOT=`grep '^DocumentRoot' ${INSTALL_ROOT}/etc/httpsd/httpd.conf | cut -d\" -f2` +fi && + +if [ "${SPELL_ROOT}" == "" ]; then + SPELL_ROOT=/usr/share +fi && + +cd ${SOURCE_DIRECTORY} && +mkdir -p ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL} && +cp -r * ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/ && +if [ -e /tmp/header.inc.php ]; then + cp -v /tmp/header.inc.php ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/ + echo "A previous header.inc.php copied from /tmp back into new installation." +fi + +echo "${SPELL} was installed in ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}" + |