changeset 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 14b29b9e06bb
children d0a5db5b9bdf
files docker/libervia/scripts/libervia_cont_launch
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docker/libervia/scripts/libervia_cont_launch	Tue Mar 01 15:47:02 2016 +0100
+++ b/docker/libervia/scripts/libervia_cont_launch	Fri Mar 04 23:25:42 2016 +0100
@@ -20,14 +20,14 @@
     try:
         sat.getProfileName(profile)
     except Exception as e:
-        print "{} profile doesn'\''t exists, creating it".format(profile)
+        print "{} profile doesn't exists, creating it".format(profile)
         print "registering {}@{}".format(profile, sat.getNewAccountDomain())
         pwd = generate_pwd()
         if profile == "libervia":
             config.fixConfigOption("libervia", "passphrase", pwd)
         elif profile == "admin":
             with open("/home/sat/ADMIN_PWD", "w") as f:
-                f.write("%s\\n" % pwd)
+                f.write("%s\n" % pwd)
         sat.registerSatAccount(admin_email, pwd, profile)
 
 os.execvp("libervia", ["libervia"] + sys.argv[1:])