From 7770cea84961bd4ff63fe39b6eaeebf64b1f66dd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 22 Jul 2008 16:18:47 +0000 Subject: Only signal a package reinstall on full installations. --- tmp/post_upgrade_command | 2 -- tmp/post_upgrade_command.php | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'tmp') diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index a88e17c..48b3f59 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -45,5 +45,3 @@ if [ -f /usr/local/sbin/php ]; then rm /usr/local/sbin/php fi -# Signal a package reinstall -touch /conf/needs_package_sync diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php index 4b9fcef..cf920f9 100755 --- a/tmp/post_upgrade_command.php +++ b/tmp/post_upgrade_command.php @@ -14,5 +14,9 @@ if(file_exists("/usr/local/www/fred.png")) unlink("/usr/local/www/fred.png"); if(file_exists("/usr/local/www/dfuife.cgi")) - unlink("/usr/local/www/dfuife.cgi"); + unlink("/usr/local/www/dfuife.cgi"); + + if($g['platform'] == "pfSense") + touch("/conf/needs_package_sync"); + ?> \ No newline at end of file -- cgit v1.1