diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 17:24:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 17:24:37 +0000 |
commit | 4075d9c10f6bdf19e416d0e33860ff9b0f9c619f (patch) | |
tree | 6e0c8ed92ec86f49b50af893c1e23311cf6c8670 /usr | |
parent | ee8f78248237468b0d301fe509513b8df76362ad (diff) | |
download | pfsense-4075d9c10f6bdf19e416d0e33860ff9b0f9c619f.zip pfsense-4075d9c10f6bdf19e416d0e33860ff9b0f9c619f.tar.gz |
Log when the package installation untars an archive
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index bcb7542..4403f23 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -430,8 +430,9 @@ foreach ($packages_to_install as $id) { fwrite($fd_log, "Downloading additional files needed for package " . $filename . " ...\n"); update_status("Downloading additional files needed for package " . $filename . " ...\n"); system("cd /usr/local/pkg && /usr/bin/fetch " . $afn . " 2>/dev/null"); - if(stristr($filename, '.tgz') <> "") { + if(stristr($filename, ".tgz") <> "") { update_status("Extracting tgz archive to -C for " . $filename); + fwrite($fd_log, "Extracting tgz archive to -C for " . $filename . " ...\n"); system("cd /usr/local/pkg && tar xzvf " . $filename . " -C / >/dev/null 2>&1"); } } |