diff --git a/dmsctl.sh b/dmsctl.sh index 41a6963..11e7467 100755 --- a/dmsctl.sh +++ b/dmsctl.sh @@ -46,7 +46,7 @@ SOFFICEFILE=soffice SOFFICE_PIDFILE=$INSTALL_PATH/var/log/soffice.bin.pid SOFFICE_PID="" SOFFICE_PORT="8100" -SOFFICEBIN=/usr/share/ktdms-office/ktdms-office/openoffice/program/soffice +SOFFICEBIN="/usr/share/ktdms-office/ktdms-office/openoffice/program/soffice" SOFFICE="$SOFFICEBIN -nofirststartwizard -nologo -headless -accept=socket,host=127.0.0.1,port=$SOFFICE_PORT;urp;StarOffice.ServiceManager" SOFFICE_STATUS="" @@ -411,9 +411,37 @@ if [ "x$3" != "x" ]; then fi # Are we running for first time -if [ -f $INSTALL_PATH/var/bin/dmsinit.lock] - firstrun +if [ -e "/usr/share/knowledgetree/var/bin/dmsinit.lock" ] +then +echo ""; +else + if grep --quiet LD_LIBRARAY_PATH /etc/zce.rc ; then + echo "Nothing to be done ... maybe" + else + echo "PATH=/usr/local/zend/bin:$PATH" >> /etc/zce.rc + if [ -z $LD_LIBRARY_PATH ] ; then + echo "LD_LIBRARY_PATH=$ZEND_DIR/lib" >> /etc/zce.rc + else + echo "LD_LIBRARY_PATH=$ZEND_DIR/lib:$LD_LIBRARY_PATH" >> /etc/zce.rc + fi + fi + touch $INSTALL_PATH/var/bin/dmsinit.lock + $ZEND_DIR/bin/zendctl.sh restart fi + +#if [ "ls /usr/share/knowledgetree/var/bin/dmsinit.lock" != "" ] ; then +# echo "No lock" +#e#lse +# echo "lock" +#f#i + +#if [ -f "/usr/share/knowledgetree/var/bin/dmsinit.lock"] ; then +# firstrun +#else +# echo 'safd'; +# exit 1; +#fi + #[[ -e $INSTALL_PATH/var/bin/dmsinit.lock ]] || firstrun case $1 in