Commit e92c073a authored by Leigh B Stoller's avatar Leigh B Stoller

Do not drop privs before the second ssh, when taking an image of a

VM. Note that the target script uses sudo, but not in all the places
it needs to, so lets just run the script as root, and yank the sudo
out later.
parent 2e78f216
...@@ -669,8 +669,6 @@ elsif ($isvirtnode) { ...@@ -669,8 +669,6 @@ elsif ($isvirtnode) {
$webtask->status("imaging") $webtask->status("imaging")
if (defined($webtask)); if (defined($webtask));
$EUID = $UID = $SAVEUID;
# #
# Now execute command and wait. # Now execute command and wait.
# #
...@@ -679,6 +677,7 @@ elsif ($isvirtnode) { ...@@ -679,6 +677,7 @@ elsif ($isvirtnode) {
} else { } else {
$result = run_with_ssh($command, undef); $result = run_with_ssh($command, undef);
} }
$EUID = $UID = $SAVEUID;
goto done; goto done;
} }
......
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