summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-22 16:18:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-22 16:18:47 +0000
commit7770cea84961bd4ff63fe39b6eaeebf64b1f66dd (patch)
tree9fffb03ee69fed3547d08944bef764fec7e67b76
parent04f4a1160a20f77f74ad25acd37aaecc41b58f72 (diff)
downloadpfsense-7770cea84961bd4ff63fe39b6eaeebf64b1f66dd.zip
pfsense-7770cea84961bd4ff63fe39b6eaeebf64b1f66dd.tar.gz
Only signal a package reinstall on full installations.
-rwxr-xr-xtmp/post_upgrade_command2
-rwxr-xr-xtmp/post_upgrade_command.php6
2 files changed, 5 insertions, 3 deletions
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
OpenPOWER on IntegriCloud