mirror of
https://gitlab.com/ceda_ei/the-long-night
synced 2025-11-05 08:50:05 +01:00
Remove file check in background.py
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user