|
|
@ -665,6 +665,8 @@ sub collect_local_data |
|
|
|
|
|
|
|
|
|
|
|
# Grab screenshots. |
|
|
|
# Grab screenshots. |
|
|
|
print "- Collecting server screenshots... "; |
|
|
|
print "- Collecting server screenshots... "; |
|
|
|
|
|
|
|
if (-d $anvil->data->{path}{directories}{screenshots}) |
|
|
|
|
|
|
|
{ |
|
|
|
$shell_call = $anvil->data->{path}{exe}{tar}." -cvjf ".$target_directory."/server-screenshots.bz2 ".$anvil->data->{path}{directories}{screenshots}; |
|
|
|
$shell_call = $anvil->data->{path}{exe}{tar}." -cvjf ".$target_directory."/server-screenshots.bz2 ".$anvil->data->{path}{directories}{screenshots}; |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { shell_call => $shell_call }}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { shell_call => $shell_call }}); |
|
|
|
|
|
|
|
|
|
|
@ -685,6 +687,11 @@ sub collect_local_data |
|
|
|
} |
|
|
|
} |
|
|
|
print "Done!\n"; |
|
|
|
print "Done!\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
print "Failed!\nScreenshot directory: [".$anvil->data->{path}{directories}{screenshots}."] doesn't exist, skipping.\n"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
print "- Grabbing hosts file... "; |
|
|
|
print "- Grabbing hosts file... "; |
|
|
|
$shell_call = $anvil->data->{path}{exe}{cp}." /etc/hosts ".$target_directory."/"; |
|
|
|
$shell_call = $anvil->data->{path}{exe}{cp}." /etc/hosts ".$target_directory."/"; |
|
|
|