summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-12-28 17:31:28 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-12-28 17:35:36 +0000
commitfd4acc93b1eba466183907e347a6077a2f1db18b (patch)
tree03fd1be16481e002ce7b852d4b7983c2b52cc906
parentd491dd33df9da172b03f576a46507f273fe48ff0 (diff)
Add prosody-transport command
I run a prosody transport server, to interact with legacy networks. Since invites are disabled on this server, nginx doesn't run and so there's no need to restart it in this case.
-rwxr-xr-xinstall-for8
1 files changed, 8 insertions, 0 deletions
diff --git a/install-for b/install-for
index 14e8fea..4779d5e 100755
--- a/install-for
+++ b/install-for
@@ -11,6 +11,7 @@ import subprocess
parser = argparse.ArgumentParser()
parser.add_argument("identity_file")
parser.add_argument("--prosody", nargs=1, default = [])
+parser.add_argument("--prosody-transport", nargs=1, default = [])
parser.add_argument("--web", nargs=1, default = [])
args = parser.parse_args()
@@ -24,6 +25,12 @@ commands = {
"sudo service nginx restart",
"sudo service prosody restart",
],
+ "prosody-transport": [
+ "sudo chmod 640 ~/*.crt ~/*.key",
+ "sudo mv ~/*.crt ~/*.key /etc/prosody/certs",
+ "sudo chown -R root:prosody /etc/prosody/certs",
+ "sudo service prosody restart",
+ ],
"web": [
"sudo chmod 600 ~/*.crt ~/*.key",
"sudo mv ~/*.crt ~/*.key /etc/nginx/ssl",
@@ -34,6 +41,7 @@ commands = {
possible_services = {
"prosody": next(iter(args.prosody), None),
+ "prosody-transport": next(iter(args.prosody_transport), None),
"web": next(iter(args.web), None),
}
services = dict(filter(lambda service: service[1] is not None, possible_services.items()))