#!/bin/sh

# $Debian: cvs/debian/cvs-pserver,v 1.1 2001/04/20 16:00:54 epg Exp $

CHROOTDIR=/var/lib/gforge/chroot
CVSROOT=cvsroot # without leading "/"!

# Execute pserver
cd $CHROOTDIR
CVS_PSERV_REPOS=$(ls -d $CVSROOT/*)
allow_root_opts="--allow-root=/$(echo $CVS_PSERV_REPOS | sed 's: : --allow-root=/:g')"

exec /usr/sbin/chroot $CHROOTDIR /usr/bin/cvs ${allow_root_opts} pserver

# End of file.
