Skip to content
Snippets Groups Projects
Commit 4f6e253c authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Fixed clean script and enriched GUI

parent 125873ea
Branches
Tags
No related merge requests found
#!/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
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment