[SAC] [OSGeo] #926: Ensuring md5 and sha1 checksums are valid in geotools maven repository

#926: Ensuring md5 and sha1 checksums are valid in geotools maven repository
---------------------------+------------------------------------------------
Reporter: jdeolive | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords:
---------------------------+------------------------------------------------
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.

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/926&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#926: Ensuring md5 and sha1 checksums are valid in geotools maven repository
---------------------------+------------------------------------------------
Reporter: jdeolive | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: downloads
---------------------------+------------------------------------------------
Changes (by warmerdam):

* cc: warmerdam (added)
  * keywords: => downloads

Comment:

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

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/926#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#926: Ensuring md5 and sha1 checksums are valid in geotools maven repository
---------------------------+------------------------------------------------
Reporter: jdeolive | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: downloads
---------------------------+------------------------------------------------

Comment(by jdeolive):

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

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/926#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#926: Ensuring md5 and sha1 checksums are valid in geotools maven repository
---------------------------+------------------------------------------------
Reporter: jdeolive | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: downloads
---------------------------+------------------------------------------------

Comment(by warmerdam):

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.

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/926#comment:3&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#926: Ensuring md5 and sha1 checksums are valid in geotools maven repository
---------------------------+------------------------------------------------
Reporter: jdeolive | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone:
Component: Systems Admin | Resolution: fixed
Keywords: downloads |
---------------------------+------------------------------------------------
Changes (by jdeolive):

  * status: new => closed
  * resolution: => fixed

Comment:

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.

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/926#comment:4&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.