diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 18:12:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 18:12:57 +0000 |
commit | cbd92b53d45b3abac724ddba9bcb5f905c194c32 (patch) | |
tree | a40be34286341de89adc95e18b98d983442a7cdf /tmp/post_upgrade_command.php | |
parent | 9062a2d6bd48b9efeee9a32e1f937c1e975e004f (diff) | |
download | pfsense-cbd92b53d45b3abac724ddba9bcb5f905c194c32.zip pfsense-cbd92b53d45b3abac724ddba9bcb5f905c194c32.tar.gz |
If index.html, fred.png or dfuife.cgi is found remove them on upgrade.
Diffstat (limited to 'tmp/post_upgrade_command.php')
-rwxr-xr-x | tmp/post_upgrade_command.php | 6 |
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 |