Commit de79b3e6 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor change for working on my machine; do not ssh into control node

if its equal to bossnode.
parent 18c971ed
......@@ -30,6 +30,7 @@ my $TB = "@prefix@";
my $TBOPS = "@TBOPSEMAIL@";
my $TBLOGS = "@TBLOGSEMAIL@";
my $CONTROL = "@USERNODE@";
my $BOSSNODE= "@BOSSNODE@";
my $ADMINGRP= "@TBADMINGROUP@";
my $SSH = "$TB/bin/sshtb";
......@@ -318,9 +319,11 @@ foreach my $uid (@userlist) {
print "Updating user $uid record on $control_node.\n";
if (system("$SSH -host $control_node ".
"'$USERMOD $uid -g $project $groupargument'")) {
fatal("Could not modify user $uid record on $control_node.");
if ($control_node ne $BOSSNODE) {
if (system("$SSH -host $control_node ".
"'$USERMOD $uid -g $project $groupargument'")) {
fatal("Could not modify user $uid record on $control_node.");
}
}
}
......
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