summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-10-01 18:13:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-10-01 18:13:03 +0000
commitc7b2070372d135f31b596a693e8fbe72b9231fb6 (patch)
treeed574bf364481255d1c588dccccd61d45cb5b5aa /tmp/post_upgrade_command.php
parentd05e1b9fcefdbc86ee62f9780c6e56f7c1fd70de (diff)
downloadpfsense-c7b2070372d135f31b596a693e8fbe72b9231fb6.zip
pfsense-c7b2070372d135f31b596a693e8fbe72b9231fb6.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-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