summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-01 18:12:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-01 18:12:57 +0000
commitcbd92b53d45b3abac724ddba9bcb5f905c194c32 (patch)
treea40be34286341de89adc95e18b98d983442a7cdf /tmp
parent9062a2d6bd48b9efeee9a32e1f937c1e975e004f (diff)
downloadpfsense-cbd92b53d45b3abac724ddba9bcb5f905c194c32.zip
pfsense-cbd92b53d45b3abac724ddba9bcb5f905c194c32.tar.gz
If index.html, fred.png or dfuife.cgi is found remove them on upgrade.
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 7f5f627..4b9fcef 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -9,4 +9,10 @@
write_config();
}
setup_serial_port();
+ if(file_exists("/usr/local/www/index.html"))
+ unlink("/usr/local/www/index.html");
+ 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");
?> \ No newline at end of file
OpenPOWER on IntegriCloud