Revision efea7969
Added by Scott Ullrich about 14 years ago
etc/inc/pkg-utils.inc | ||
---|---|---|
321 | 321 |
$static_output .= "Backing up libraries... "; |
322 | 322 |
update_output_window($static_output); |
323 | 323 |
exec("/usr/bin/tar czPf /tmp/pkg_libs.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'local/lib' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); |
324 |
exec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrdtool' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); |
|
324 | 325 |
$static_output .= "\n"; |
325 | 326 |
} |
326 | 327 |
} |
... | ... | |
345 | 346 |
$static_output .= "Cleaning up... "; |
346 | 347 |
update_output_window($static_output); |
347 | 348 |
exec("/usr/bin/tar xzPfU /tmp/pkg_libs.tgz -C /"); |
348 |
@unlink("/tmp/pkg_libs.tgz"); |
|
349 |
exec("/usr/bin/tar xzPfU /tmp/pkg_bins.tgz -C /"); |
|
350 |
@unlink("/tmp/pkg_libs.tgz"); |
|
351 |
@unlink("/tmp/pkg_bins.tgz"); |
|
349 | 352 |
} |
350 | 353 |
} |
351 | 354 |
|
... | ... | |
1190 | 1193 |
} |
1191 | 1194 |
} |
1192 | 1195 |
|
1193 |
?> |
|
1196 |
?> |
Also available in: Unified diff
Backup rrdtool binaries during package reinstallation. Currently that is the onlyp package that can be clobbered by others. We will rework this completely in a future version when we adopt PBIs.