Skip to content

Commit

Permalink
pfSense-upgrade: Cleanup PHP error log earlier
Browse files Browse the repository at this point in the history
Remove PHP error log file after stage #2 of upgrade process has
finished.  All PHP packages are upgraded at this stage and when it
finishes it's safe to remove the file that may contain warnings
generated during pkg upgrade
  • Loading branch information
rbgarga committed Sep 28, 2021
1 parent a054a5d commit 6f979c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sysutils/pfSense-upgrade/files/pfSense-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,9 @@ pkg_upgrade() {

# Register that system is running latest pkg_set_version
cp -f ${pkg_set_version} ${running_pkg_set_version}

# Cleanup possible crash report from PHP upgrade
rm -f /tmp/PHP_errors.log
fi

_pkg annotate -q -M ${kernel_pkg} next_stage 3
Expand Down

0 comments on commit 6f979c7

Please sign in to comment.