Commit 72ae7f9c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slaprunner: check htpasswd file exists before removal

parent 55d07491
......@@ -84,6 +84,7 @@ def saveSession(config, account):
# Htpasswd file for cloud9
# XXX Cedric Le N order of account list values suppose to be fixed
# Remove former file to avoid aoutdated accounts
if os.path.exists(htpasswdfile):
os.remove(htpasswdfile)
passwd = HtpasswdFile(htpasswdfile, create=True)
passwd.update(account[0], account[1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment