savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers] anonymous CVS problem fixed


From: Loic Dachary
Subject: [Savannah-hackers] anonymous CVS problem fixed
Date: Mon, 7 Jan 2002 23:14:11 +0100

        Hi,

        I repaired the broken CVSROOT and sent a mail to people involved in
the corresponding project to tell them that it's now fixed. Here is the
script I used, for the record:

subversions.gnu.org:/subversions/sourceforge/src/savannah/gnuscripts/fixanon

groups="audiodo bootdisk ci dcciv diffutils dzk equinox ewok fhp gaw geekpoly 
geocaml giconed irmctl khamlog loco mailman mifayn moriarty nano noname 
okstraperl peng prime pwp rotateurl samotnik3d sdpl simulavr socksbot solpkg 
spacebar stow zbpos"

#for group in $groups
#do
#export dir=/cvsroot/$group
#chown -R loic $dir/CVSROOT
#mkdir .tmp1 ; chown loic .tmp1
#su loic -c "(
# cd .tmp1
# cvs -d $dir co CVSROOT
# cd CVSROOT
# echo 'readers         Wont be able to control read-only access.
#passwd          Wont be able to add pserver accounts.' >> checkoutlist
# cat > config <<END
## Set this to "no" if pserver shouldn't check system users/passwords
#SystemAuth=no
#
## Put CVS lock files in this directory rather than directly in the repository.
#LockDir=/var/lock/cvs/cvsroot/$group
#
## Set TopLevelAdmin to yes to create a CVS directory at the top
## level of the new working directory when using the cvs checkout
## command.
##TopLevelAdmin=no
#
## Set LogHistory to all or TOFEWGCMAR to log all transactions to the
## history file, or a subset as needed (ie TMAR logs all write operations)
##LogHistory=TOFEWGCMAR
#END
# cvs commit -m 'Fix bugous config and checkoutlist'
#)"
#rm -fr .tmp1
#       
#done
#

rm -f /tmp/mail.*
for project in $groups
do
        i=1
        mysql -B -Ne "select user.email,groups.group_id,groups.unix_group_name 
from user,groups,user_group where user_group.user_id = user.user_id and 
user_group.group_id = groups.group_id and groups.unix_group_name = '$project'" 
sourceforge | while read mail groupid project
        do
                cat > /tmp/mail.$project.$i <<EOF;
Subject: $project: anonymous cvs problem fixed
To: $mail

        Hi,

        You receive this mail because you are a member of the 
http://savannah.gnu.org/project/$project. No action is required
from you.

        Because of a bug in the project registration procedure, the
anonymous CVS was not working for $project. The bug was fixed and you
should now be able to anonymously checkout with the following:

        mkdir test
        cd test
        cvs -d :pserver:address@hidden:/cvsroot/$project login
        (type return as a password)
        cvs -d :pserver:address@hidden:/cvsroot/$project co .

        Detailed instructions for CVS checkout on /cvsroot/$project
        can be found at http://savannah.gnu.org/cvs/?group_id=$groupid 

        If you still experience problems, please send a mail to
address@hidden Including the exact command you typed and
the complete output will be very helpful. 

        The CVS hackers and Savannah maintainers.
EOF
                i=`expr $i + 1`
        done
done
cat <<'EOF'

Now send all mails by running:

for i in /tmp/mail.* ; do sendmail -f address@hidden -t < $i ; sleep 5 ; echo 
$i ; done

EOF

-- 
Loic   Dachary         http://www.dachary.org/  address@hidden
12 bd  Magenta         http://www.senga.org/      address@hidden
75010    Paris         T: 33 1 42 45 07 97          address@hidden
        GPG Public Key: http://www.dachary.org/loic/gpg.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]