mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
remove syntax error from redis bgsave sanity checker
This commit is contained in:
parent
5cbe285888
commit
4b257bce00
1 changed files with 1 additions and 2 deletions
|
@ -14,10 +14,9 @@ def main():
|
|||
t = os.popen('stat -c%Y /srv/newsblur/docker/volumes/redis/')
|
||||
timestamp = t.read().split('\n')[0]
|
||||
modified = datetime.datetime.fromtimestamp(int(timestamp))
|
||||
ten_min_ago = datetime.datetime.now() - datetime.timedelta(minutes=10)
|
||||
hostname = socket.gethostname()
|
||||
modified_minutes = datetime.datetime.now() - modified
|
||||
log_tail = os.popen(f"tail -n 100 {redis_log_path} redis)").read()
|
||||
log_tail = os.popen(f"tail -n 100 {redis_log_path}").read()
|
||||
if True:
|
||||
#if modified < ten_min_ago:
|
||||
requests.post(
|
||||
|
|
Loading…
Add table
Reference in a new issue