Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Connectivity Check
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Connectivity Check
Commits
4f6e253c
Commit
4f6e253c
authored
4 years ago
by
Marco Malavolti
Browse files
Options
Downloads
Patches
Plain Diff
Fixed clean script and enriched GUI
parent
125873ea
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clean7daysOldFiles.sh
+6
-3
6 additions, 3 deletions
clean7daysOldFiles.sh
web/index.php
+2
-3
2 additions, 3 deletions
web/index.php
with
8 additions
and
6 deletions
clean7daysOldFiles.sh
+
6
−
3
View file @
4f6e253c
#!/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
This diff is collapsed.
Click to expand it.
web/index.php
+
2
−
3
View file @
4f6e253c
...
...
@@ -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=
"DISABLE
D
"
>
DISABLE
D
</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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment