[Koha-devel] z3950-daemon-launch.sh patch
Micheas Herman
micheas at micheas.dyns.net
Sun Nov 10 09:38:02 CET 2002
FreeBSD's su command does not accept commands.
Here is a patch. That works with FreeBSD 4.5 Release and Debian SID.
Micheas
-------------- next part --------------
? z3950-daemon-launch.sh.diff
Index: z3950-daemon-launch.sh
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/z3950-daemon-launch.sh,v
retrieving revision 1.3
diff -r1.3 z3950-daemon-launch.sh
38c38,44
< su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &
---
> if [ $(uname)=="FreeBSD" ]
> then
> setuidgid $RunAsUser $KohaZ3950Shell;
> else
> echo su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &;
> fi;
>
More information about the Koha-devel
mailing list