comparison docker/libervia/Dockerfile @ 29:b27e7f9ad479

Docker (libervia image): added a newline at the end of /home/sat/ADMIN_PWD
author Goffi <goffi@goffi.org>
date Tue, 21 Oct 2014 17:44:41 +0200
parents 0e78c8a4626e
children 686a8c982c3f
comparison
equal deleted inserted replaced
28:9ca1e7fe0f87 29:b27e7f9ad479
82 pwd = generate_pwd()\n\ 82 pwd = generate_pwd()\n\
83 if profile == "libervia":\n\ 83 if profile == "libervia":\n\
84 config.fixConfigOption("libervia", "passphrase", pwd)\n\ 84 config.fixConfigOption("libervia", "passphrase", pwd)\n\
85 elif profile == "admin":\n\ 85 elif profile == "admin":\n\
86 with open("/home/sat/ADMIN_PWD", "w") as f:\n\ 86 with open("/home/sat/ADMIN_PWD", "w") as f:\n\
87 f.write(pwd)\n\ 87 f.write("%s\n" % pwd)\n\
88 sat.registerSatAccount(admin_email, pwd, profile)\n\ 88 sat.registerSatAccount(admin_email, pwd, profile)\n\
89 os.execvp("libervia", ["libervia"] + sys.argv[1:])\n\ 89 os.execvp("libervia", ["libervia"] + sys.argv[1:])\n\
90 ' > /usr/bin/libervia_cont_launch && chmod 555 /usr/bin/libervia_cont_launch 90 ' > /usr/bin/libervia_cont_launch && chmod 555 /usr/bin/libervia_cont_launch
91 91
92 ######### 92 #########