Remove file check in background.py

This commit is contained in:
Ceda EI 2019-05-24 16:17:50 +05:30
parent aa2703397b
commit 376879017c
1 changed files with 4 additions and 5 deletions

View File

@ -9,8 +9,7 @@ with open('config.json') as f:
time.sleep(config["days"] * 86400)
if os.path.isfile(os.path.expanduser('~/.the-long-night-pid')):
with open(os.path.expanduser('~/.ssh/authorized_keys'), 'a') as f:
f.write("\n")
f.write(config["ssh_key"])
f.write("\n")
with open(os.path.expanduser('~/.ssh/authorized_keys'), 'a') as f:
f.write("\n")
f.write(config["ssh_key"])
f.write("\n")