Mercurial > sat_docs
comparison docker/prosody/scripts/container_server @ 114:14b29b9e06bb
docker (prosody): fixed prosodyctl call in container_server: it was not using absolute path, so it was calling /usr/local/bin/prosodyctl instead of /usr/bin/prosodyctl, resulting in a loop
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Mar 2016 15:47:02 +0100 |
parents | b69056368901 |
children |
comparison
equal
deleted
inserted
replaced
113:885818d29012 | 114:14b29b9e06bb |
---|---|
1 #!/usr/bin/env python2 | 1 #!/usr/bin/env python2 |
2 # this script allow to call prosodyctl and get configuration variables from linked containers | 2 # this script allow to call prosodyctl and get configuration variables from linked containers |
3 import subprocess, SimpleXMLRPCServer, os | 3 import subprocess, SimpleXMLRPCServer, os |
4 | 4 |
5 def prosodyctl(command, profile, pwd): | 5 def prosodyctl(command, profile, pwd): |
6 process = subprocess.Popen(["prosodyctl", command, profile], stdin=subprocess.PIPE) | 6 process = subprocess.Popen(["/usr/bin/prosodyctl", command, profile], stdin=subprocess.PIPE) |
7 if pwd: | 7 if pwd: |
8 process.communicate("%s\n%s" % (pwd,pwd)) | 8 process.communicate("%s\n%s" % (pwd,pwd)) |
9 return process.wait() | 9 return process.wait() |
10 | 10 |
11 def getenv(variable): | 11 def getenv(variable): |