Skip to content

Commit

Permalink
write msg to /var/run/sdwdate/msg so whonixcheck can read it
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Aug 26, 2016
1 parent 9ed5870 commit 302caed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/bin/sdwdate
Expand Up @@ -92,6 +92,7 @@ class Sdwdate:
self.first_success_path = '/var/run/sdwdate/first_success'
self.success_path = '/var/run/sdwdate/success'
self.status_path = '/var/run/sdwdate/status'
self.msg_path = '/var/run/sdwdate/msg'

self.success_icon = '/usr/share/icons/sdwdate-gui/Ambox_currentevent.svg.png'
self.busy_icon = '/usr/share/icons/sdwdate-gui/620px-Ambox_outdated.svg.png'
Expand Down Expand Up @@ -304,6 +305,9 @@ class Sdwdate:
with open(self.status_path, 'wb') as f:
pickle.dump(self.status, f)

with open(self.msg_path, 'wb') as msgf:
msgf.write(args[1])

def sdwdate_loop(self):
'''
Check remotes.
Expand Down

0 comments on commit 302caed

Please sign in to comment.