Commit d4feae88 authored by Mike Hibler's avatar Mike Hibler

Only ssh over to ops (as root) when running as root.

parent a0d2226f
......@@ -1694,7 +1694,7 @@ sub hashit($)
my ($file) = @_;
my $hash;
if ($file =~ /^\/(proj|groups)/) {
if ($UID == 0 && $file =~ /^\/(proj|groups)/) {
$hash = `$SSH $SHA1 $file`;
} else {
$hash = `$SHA1 $file`;
......
Markdown is supported
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