Mercurial > sat_docs
view docker/base/scripts/prosodyctl @ 161:4fe61dcd856e
flatpak: update build-manifest to retrieve dependencies without initial download phase:
- dependencies are now entirely retrieved from the installation, and requirement are build
from there. The source package is currently always used, and it is now possible to use
PYTHON_DEP_PREINSTALL to add extra packages or use a specific version of a package.
- fixed insertion of `release_elt` for dev version at the right location.
- `branch` is not set anymore for stable versions.
- libxslt is not added anymore as it is part of freedesktop runtime
- flathub share-modules is now used for Python 2
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 23 Aug 2019 16:41:05 +0200 |
parents | b69056368901 |
children |
line wrap: on
line source
#!/usr/bin/env python2 # This script simulate prosodyctl adduser/passwd/deluser and call it on the prosody container import sys, xmlrpclib proxy = xmlrpclib.ServerProxy("http://prosody:9999/") def pwd(): pwd1=raw_input(); pwd2=raw_input(); assert pwd1==pwd2 return pwd1 password = pwd() if sys.argv[1] in ["adduser", "passwd"] else "" sys.exit(proxy.prosodyctl(sys.argv[1], sys.argv[2], password))