Mercurial > sat_docs
comparison docker/libervia/scripts/libervia_cont_launch @ 115:5d8b9ca2afd4
docker (libervia): fixed bad escaping after moving libervia_cont_launch from Dockerfile to scripts/
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 04 Mar 2016 23:25:42 +0100 |
parents | b69056368901 |
children |
comparison
equal
deleted
inserted
replaced
114:14b29b9e06bb | 115:5d8b9ca2afd4 |
---|---|
18 | 18 |
19 for profile in ["libervia", "admin"]: | 19 for profile in ["libervia", "admin"]: |
20 try: | 20 try: |
21 sat.getProfileName(profile) | 21 sat.getProfileName(profile) |
22 except Exception as e: | 22 except Exception as e: |
23 print "{} profile doesn'\''t exists, creating it".format(profile) | 23 print "{} profile doesn't exists, creating it".format(profile) |
24 print "registering {}@{}".format(profile, sat.getNewAccountDomain()) | 24 print "registering {}@{}".format(profile, sat.getNewAccountDomain()) |
25 pwd = generate_pwd() | 25 pwd = generate_pwd() |
26 if profile == "libervia": | 26 if profile == "libervia": |
27 config.fixConfigOption("libervia", "passphrase", pwd) | 27 config.fixConfigOption("libervia", "passphrase", pwd) |
28 elif profile == "admin": | 28 elif profile == "admin": |
29 with open("/home/sat/ADMIN_PWD", "w") as f: | 29 with open("/home/sat/ADMIN_PWD", "w") as f: |
30 f.write("%s\\n" % pwd) | 30 f.write("%s\n" % pwd) |
31 sat.registerSatAccount(admin_email, pwd, profile) | 31 sat.registerSatAccount(admin_email, pwd, profile) |
32 | 32 |
33 os.execvp("libervia", ["libervia"] + sys.argv[1:]) | 33 os.execvp("libervia", ["libervia"] + sys.argv[1:]) |