diff options
Diffstat (limited to 'collab/openit/BUILD')
-rwxr-xr-x | collab/openit/BUILD | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/collab/openit/BUILD b/collab/openit/BUILD new file mode 100755 index 0000000000..0fa1173d99 --- /dev/null +++ b/collab/openit/BUILD @@ -0,0 +1,14 @@ +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 && +[ -f ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/inc/settings.ini ] && +cp -ruv ${INSTALL_ROOT}${SPELL_ROOT}/${SPELL}/inc/settings.ini /tmp && + +echo "${SPELL} previous inc/settings.ini was copied over to /tmp" +true |