Remove file check in background.py
This commit is contained in:
parent
aa2703397b
commit
376879017c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue