Opened 12 years ago

Closed 12 years ago

#926 closed task (fixed)

Ensuring md5 and sha1 checksums are valid in geotools maven repository

Reported by: jdeolive Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords: downloads
Cc: warmerdam

Description

Over the past while various complaints have popped up about the checksums in the geotools maven repository not being valid. I have created a script that will report and optionally fix the checksums. It is currently located at /home/jdeolive/checksums.sh on download.osgeo.org.

To run the script and fix all the of md5/sha1 sums for all jar/pom files:

checksum.sh -j -p -s -m -f /osgeo/download/webdav/geotools/

It would be nice if this could run as a nightly cron job.

Change History (4)

comment:1 by warmerdam, 12 years ago

Cc: warmerdam added
Keywords: downloads added

Justin, I think you can just run it under cron on your account on downloads.osgeo.org.

comment:2 by jdeolive, 12 years ago

Hi Frank, I don't believe my user account has permission to write to anything under /osgeo/download/webdav/geotools

comment:3 by warmerdam, 12 years ago

Justin,

I've added you to the www-data group. With that I think you can add the command "newgrp www-data" to the beginning of your script and it will be able to update the tree. I've also added you to the "sudo" list. So if you can't get things working with the newgrp command you can use sudo to install a cronjob to run your script. If you aren't sure how to do that just let me know and I'll do it.

comment:4 by jdeolive, 12 years ago

Resolution: fixed
Status: newclosed

Thanks Frank. I couldn't quite figure out how to get newgrp to work as it prompts for input so I just resorted to running it as root under daily cron. The script is /etc/cron.daily/mvn-checksums. Hope that is ok. Thanks for the work on this.

Note: See TracTickets for help on using tickets.