summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-30 21:47:34 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-30 21:48:12 -0500
commit6543ffa4c5ef4782da43501948f1d054452c6a9a (patch)
tree2848ade70d031436d99490efb6045f9c5153aa67 /src
parent6f4f641ac56e97d9888d58607e80b0d66de6b22d (diff)
downloadpfsense-6543ffa4c5ef4782da43501948f1d054452c6a9a.zip
pfsense-6543ffa4c5ef4782da43501948f1d054452c6a9a.tar.gz
Fixed #5555
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/local/www/status.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php
index 21358fc..1722099 100755
--- a/src/usr/local/www/status.php
+++ b/src/usr/local/www/status.php
@@ -317,4 +317,14 @@ print_info_box(gettext("Make sure all sensitive information is removed! (Passwor
listCmds();
execCmds();
+print(gettext("Saving output to archive..."));
+
+if (is_dir($output_path)) {
+ mwexec("/usr/bin/tar czpf " . escapeshellarg($output_file) . " -C " . escapeshellarg(dirname($output_path)) . " " . escapeshellarg(basename($output_path)));
+ unlink_if_exists("{$output_path}/*");
+ @rmdir($output_path);
+}
+
+print(gettext("Done."));
+
include("foot.inc");
OpenPOWER on IntegriCloud