changeset 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 885818d29012
children 5d8b9ca2afd4
files docker/prosody/scripts/container_server
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docker/prosody/scripts/container_server	Mon Feb 29 22:06:03 2016 +0100
+++ b/docker/prosody/scripts/container_server	Tue Mar 01 15:47:02 2016 +0100
@@ -3,7 +3,7 @@
 import subprocess, SimpleXMLRPCServer, os
 
 def prosodyctl(command, profile, pwd):
-    process = subprocess.Popen(["prosodyctl", command, profile], stdin=subprocess.PIPE)
+    process = subprocess.Popen(["/usr/bin/prosodyctl", command, profile], stdin=subprocess.PIPE)
     if pwd:
         process.communicate("%s\n%s" % (pwd,pwd))
     return process.wait()