Hello all,

I normally do not use the expert-mode in webconf,
prefering a command line instead, but I discovered
that the beta issue has managed to break this functionality.
For those wanting to use it, the following patch seems to
solve all the problems I observed. Please tell if any new
inaccuracy arises. I vaguely remember that attachements to
this list were scrubbed, so I include the same patch in the
message, but be prepare to tidy it somewhat due to your reader,
or my Evolution for that matter!


Regards

Mats E Andersson



diff -Nar
-u1 /tmp/orig/webconf/lib/svcstat.sh /tmp/ny/webconf/lib/svcstat.sh
--- /tmp/orig/webconf/lib/svcstat.sh    2007-09-14 22:41:41.204960032
+0200
+++ /tmp/ny/webconf/lib/svcstat.sh      2007-09-14 22:48:06.125443224
+0200
@@ -23,3 +23,3 @@
 pidchk=$3
-mycheck="pidof $pidchk"
+mycheck="pidof $(basename $pidchk)"
 [ $pidchk = "-" ] && mycheck=$4
diff -Nar
-u1 /tmp/orig/webconf/www/lrcfg.cgi /tmp/ny/webconf/www/lrcfg.cgi
--- /tmp/orig/webconf/www/lrcfg.cgi     2007-09-14 22:49:20.670110712
+0200
+++ /tmp/ny/webconf/www/lrcfg.cgi       2007-09-14 23:00:31.937062624
+0200
@@ -17,3 +17,3 @@

-pkg="$( basename $FORM_cfg .conf )"
+pkg="$( basename ${FORM_cfg} .conf )"

@@ -37,3 +37,3 @@
                        ;;
-       * )             initscript="$( grep
etc/init.d/ /var/lib/lrpkg/${pkg}.list 2>/dev/null )"
+       * )             initscript="$( egrep
etc/init.d/.+ /var/lib/lrpkg/${pkg}.list 2>/dev/null )"
                        for x in $initscript; do
@@ -47,3 +47,3 @@
        guess=$( grep "\-\-exec" /etc/init.d/$x | head -n 1 | \
-               sed 's/^.*exec//; s/^[  ]*//; s/\([^    ]*\).*$/\1/;
s/;//g' )
+               sed 's/^.*exec *//; s/ .*//' )
        # exec runs $DAEMON, or there is no "exec" line
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to