HistoryPurge: Clearing 219 old commits
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
import os, time
|
||||
|
||||
fileage = os.path.getmtime('/var/log/ufw.log');
|
||||
|
||||
if time.time() - fileage > 7200:
|
||||
print ('File is > 2 hours old')
|
||||
|
||||
Reference in New Issue
Block a user