mirror of
https://gitlab.com/ceda_ei/the-long-night
synced 2025-03-12 20:46:52 +01:00
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…
x
Reference in New Issue
Block a user