[OGo-Users] Kubuntu Edgy Install

Florian Reitmeir users@opengroupware.org
Fri, 17 Nov 2006 12:44:30 +0100


--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Hi,

On Fre, 17 Nov 2006, Peter Hopfgartner wrote:

> >my guess is, the above commands execute nicely, but your /bin/sh is 
> >pointing
> >to an uncommon shell.
> >
> >  
> Ubuntu started using Dash for some reason, mainly performance. Could the 
> scripts be modified to avoid bashisms?

i've attached a patch which makes the start/stop script also work which
dash..

-- 
Florian Reitmeir

--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="opengroupware.org.patch"

--- /etc/init.d/opengroupware.org	2006-11-17 12:41:55.965305110 +0100
+++ /home/squat/opengroupware.org	2006-11-17 12:42:03.893973790 +0100
@@ -46,7 +46,7 @@
 		echo "OpenGroupware.org web application server not started as requested"
 		exit 0
 	fi
-        if ! ls /etc/opengroupware.org/*/init.conf &>/dev/null; then
+        if ! (ls /etc/opengroupware.org/*/init.conf >/dev/null;echo $?); then
 		echo "Skipping OpenGroupware.org: No instances defined."
 		exit 0
 	fi

--UPT3ojh+0CqEDtpF--