Thom May wrote:
> 
> > How about an extra echo:
> > 
> > if [ "x`$aux/getuid.sh`" != "x0" -a "x$port" = "x" ]; then
> >     conf_port="8080"
> >     echo "Non-root process. Server will run on port $conf_port"
> > fi
> 
> I think the best solution is to educate the user, rather than to do
> something unexpected.
> if [ "x`$aux/getuid.sh`" != "x0" -a "x$port" = "x" ]; then
>         echo "You are not currently the superuser. Therefore we can't start
>         apache listening on a privileged port (One above 1024)"
> fi
> 

Add to that the "Server will run..." message and the setting to port 8080
and +1 :)

I'd prefer education but also that they get a configuration that they
can test "right after" a build/install :)

-- 
===========================================================================
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Reply via email to