summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-24 12:21:33 -0400
committerjim-p <jimp@pfsense.org>2011-05-24 12:22:43 -0400
commita90896fd641a24d33af1db55efbf83c5cfac9974 (patch)
tree61e52eda3e7c3ee3ac599d848badaef843bf2a62 /tmp/post_upgrade_command.php
parent7a18dfa4ed218ad7b114d9cd52c008a76c811614 (diff)
downloadpfsense-a90896fd641a24d33af1db55efbf83c5cfac9974.zip
pfsense-a90896fd641a24d33af1db55efbf83c5cfac9974.tar.gz
Move the code to touch needs_package_sync into the shell script portion of the post upgrade command. The PHP portion will fail spectacularly during the 1.2.3-to-2.0 upgrade trying to run the new binaries on the old OS. The shell script part still works. Fixes #1251 enough for what we need. The PHP code can never run properly there, but at least we can trigger the package reinstall and the rest can sort itself out when 2.0 boots the first time.
Diffstat (limited to 'tmp/post_upgrade_command.php')
-rwxr-xr-xtmp/post_upgrade_command.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index dfe9342..a188710 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -20,9 +20,6 @@
setup_serial_port();
- if($g['platform'] == "pfSense" or $g['platform'] == "nanobsd")
- touch("/conf/needs_package_sync");
-
$files_to_process = split("\n", file_get_contents("/etc/pfSense.obsoletedfiles"));
foreach($files_to_process as $filename)
if(file_exists($filename))
OpenPOWER on IntegriCloud