Commit f6a67dc8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Run imagevalidate as root so it can access /proj.

Mark image update time when importing; more important to know
when the image was brought in then when it was updated on the
remote site.
parent 4b1ee123
......@@ -311,12 +311,19 @@ if ($getimage) {
# Update DB info. Use the hash we were given, no need to recalculate.
my $imageid = $image->imageid();
# Run as root to access /proj
$EUID = $UID = 0;
if (system("$IMAGEVALIDATE -uq -H '$newhash' $imageid")) {
# XXX should this be fatal?
print STDERR "Could not update DB info for $image\n";
# Its more important to know when we brought the new version in.
if ($WITHPROVENANCE && $doprovenance $isupdate) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment