diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 18:13:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-10-01 18:13:03 +0000 |
commit | c7b2070372d135f31b596a693e8fbe72b9231fb6 (patch) | |
tree | ed574bf364481255d1c588dccccd61d45cb5b5aa | |
parent | d05e1b9fcefdbc86ee62f9780c6e56f7c1fd70de (diff) | |
download | pfsense-c7b2070372d135f31b596a693e8fbe72b9231fb6.zip pfsense-c7b2070372d135f31b596a693e8fbe72b9231fb6.tar.gz |
If index.html, fred.png or dfuife.cgi is found remove them on upgrade.
-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 |