diff --git a/clean7daysOldFiles.sh b/clean7daysOldFiles.sh index 13d5ba58aa9f61a40395555e19d4eb8e9de90f30..f06b1b13fdc0747d2dc32b3fab45bd9c51f7a0de 100755 --- a/clean7daysOldFiles.sh +++ b/clean7daysOldFiles.sh @@ -1,10 +1,13 @@ #!/bin/bash +BASEDIR=/var/www/html/eccs2 + # Remove ECCS2 result older than 7 days -find $HOME/eccs2/output/* -mtime +6 -type f -delete +find $BASEDIR/output/* -mtime +6 -type f -delete # Remove ECCS2 logs older than 7 days -find $HOME/eccs2/logs/* -mtime +6 -type f -delete +find $BASEDIR/logs/* -mtime +6 -type f -delete # Remove ECCS2 HTML code older than 7 days -find $HOME/eccs2/html/* -mtime +6 -type f -delete +find $BASEDIR/html/* -mtime +6 -type f -delete +find $BASEDIR/html -type d -empty -delete diff --git a/web/index.php b/web/index.php index 17db15d0c599b0042f55c6487bbdcd62559faf17..25afe88264208b3eebde89e16bf997de4f7a4387 100644 --- a/web/index.php +++ b/web/index.php @@ -25,9 +25,10 @@ $lastDate = str_replace($str2strip, "", $lastFile); <body> <hr> <div id="status"> + <strong>Show IdPs with status:</strong> <input type="checkbox" name="status" value="ERROR">ERROR</input> <input type="checkbox" name="status" value="OK">OK</input> - <input type="checkbox" name="status" value="DISABLE">DISABLE</input> + <input type="checkbox" name="status" value="DISABLED">DISABLED</input> <button style="float:right;" onclick="getPastResults()">Go</button> <input style="float:right;" type="date" id="myDate" min="<?php echo $firstDate ?>" max="<?php echo $lastDate ?>" value="<?php echo $lastDate ?>"/> </div> @@ -52,5 +53,3 @@ $lastDate = str_replace($str2strip, "", $lastFile); <script type="text/javascript" src="script.js" /></script> </body> </html> - -