Accepting request 68082 from home:psmt:branches:devel:tools:scm:svn
OBS-URL: https://build.opensuse.org/request/show/68082 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=45
This commit is contained in:
parent
c6c37d716c
commit
65bc75bd99
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 21 15:57:51 CEST 2011 - pth@suse.de
|
||||
|
||||
- Use getent to check for existance of user and group (bnc#688968).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 24 11:24:33 UTC 2011 - stsp@elego.de
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 1995-2002 SuSE Linux AG, Nuernberg, Germany.
|
||||
# Copyright (c) 1995-20011 SuSE Linux AG, Nuernberg, Germany.
|
||||
# All rights reserved.
|
||||
#
|
||||
# /etc/init.d/svnserve
|
||||
@ -96,13 +96,21 @@ case "$1" in
|
||||
echo -n "Starting svnserve "
|
||||
## Start daemon with startproc(8). If this fails
|
||||
## the return value is set appropriately by startproc.
|
||||
if test -z "$SVNSERVE_USERID" || ! (/usr/bin/id $SVNSERVE_USERID &>/dev/null) \
|
||||
UID_ENT="$(/usr/bin/getent passwd $SVNSERVE_USERID)"
|
||||
GID_ENT="$(/usr/bin/getent group $SVNSERVE_GROUPID)"
|
||||
|
||||
test -z "$SVNSERVE_GROUPID" || ! (/usr/bin/id $SVNSERVE_GROUPID &>/dev/null);
|
||||
if test -z "$SVNSERVE_USERID" -o -z "$UID_ENT"
|
||||
then
|
||||
echo
|
||||
echo "User $SVNSERVE_USERID does not exist."
|
||||
echo "Please check $SVNSERVE_CONFIG before starting this service."
|
||||
rc_failed
|
||||
elif test -z "$SVNSERVE_GROUPID" -o -z "$GID_ENT"
|
||||
then
|
||||
echo
|
||||
echo "Group $SVNSERVE_GROUPID does not exist."
|
||||
echo "Please check $SVNSERVE_CONFIG before starting this service."
|
||||
rc_failed
|
||||
else
|
||||
startproc -u "$SVNSERVE_USERID" -g "$SVNSERVE_GROUPID" -e $SVNSERVE_BIN $SVNSERVE_OPTIONS
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user