summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-08-23 00:04:10 -0400
committerbrent s <bts@square-r00t.net>2020-08-23 00:04:10 -0400
commitb0fba9b441ae36fc88ef6aaa23da30ecf0fb4ab5 (patch)
treecd5bcc140e96918ca4e0994cc807b526ab5be900
parent6954e8dc4ed7ba9d52988baa4646d78bf71a8f71 (diff)
parent0febad432acfa1a0741faf43f54c18504a5522b0 (diff)
downloadOpTools-b0fba9b441ae36fc88ef6aaa23da30ecf0fb4ab5.tar.xz
Merge branch 'master' of square-r00t.net:optools into master
-rw-r--r--aif/scripts/post/sshsecure.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/aif/scripts/post/sshsecure.py b/aif/scripts/post/sshsecure.py
index fb7e1fb..d2232df 100644
--- a/aif/scripts/post/sshsecure.py
+++ b/aif/scripts/post/sshsecure.py
@@ -405,9 +405,8 @@ def main():
else:
# It's a stale PID file.
os.remove(self_pidfile)
- else:
- with open(self_pidfile, 'w') as f:
- f.write(str(os.getpid()) + '\n')
+ with open(self_pidfile, 'w') as f:
+ f.write(str(os.getpid()) + '\n')
_chkfile = '/etc/ssh/.aif-generated'
if not os.path.isfile(_chkfile):
# Warning: The moduli stuff can take a LONG time to run. Hours.