Skip to content

Commit

Permalink
Merge pull request #119 from brianhlin/cleanup-fixups
Browse files Browse the repository at this point in the history
Cleanup fixups
  • Loading branch information
brianhlin authored Mar 27, 2020
2 parents 4ea50dc + a5d0261 commit e3833bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion bin/vm-test-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ day='[0-3][0-9]'
hour='[012][0-9]'
minute='[0-5][0-9]'

cd /osgtest/runs
cd /osgtest/runs/
/bin/ls -d run-${year}${month}${day}-${hour}${minute} | head -n -${RUNS_TO_KEEP} | while read rundir; do
rm -rf "$rundir"
done

cd /var/www/html/
/bin/ls -d ${year}${month}${day}-${hour}${minute} | head -n -${RUNS_TO_KEEP} | while read rundir; do
rm -rf "$rundir"
done
1 change: 1 addition & 0 deletions rpm/vm-test-cleanup.timer
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[Unit]
Description=Cleanup old OSG VM Universe integration test runs periodically
Requires=vm-test-cleanup.service

[Timer]
OnBootSec=10min
Expand Down
5 changes: 4 additions & 1 deletion rpm/vm-test-runs.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: OSG VMU test scripts
Name: vm-test-runs
Version: 1.0
Version: 1.1
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
License: Apache 2.0
Expand Down Expand Up @@ -66,6 +66,9 @@ install -D vmu.css %{buildroot}/%{_localstatedir}/www/html/vmu.css
%{_localstatedir}/www/html/vmu.css

%changelog
* Fri Mar 27 2020 Brian Lin <blin@cs.wisc.edu> 1.1-1
- VM test run service cleanup fixes

* Tue Mar 24 2020 Brian Lin <blin@cs.wisc.edu> 1.0-1
- Package CSS file
- Systemd unit file fixes
Expand Down

0 comments on commit e3833bd

Please sign in to comment.