From a960b23caebd5362b5f292f73c6e41ebee2ad98c Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Wed, 29 May 2024 18:16:11 +0100 Subject: Generalise prosody-specific install script This project's initial purpose was to automatically renew certiricates across multiple prosody servers. However, over time, it has been used with more services, each with their own ad-hoc and custom installation scripts. This commit replaces the install-for-prosody script with a more general script that can handle multiple different kinds of services in the future. --- install-for-prosody | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 install-for-prosody (limited to 'install-for-prosody') diff --git a/install-for-prosody b/install-for-prosody deleted file mode 100755 index 4ab540b..0000000 --- a/install-for-prosody +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# SPDX-FileCopyrightText: 2024 Matthew Fennell -# -# SPDX-License-Identifier: AGPL-3.0-only - -set -eux - -connection_string="$1" -ssh_key="$2" - -ssh_args=(-o IdentitiesOnly=yes -F /dev/null -i "${ssh_key}") - -# LEGO_CERT_PATH is an environment variable -#shellcheck disable=SC2154 -scp "${ssh_args[@]}" "${LEGO_CERT_PATH}" "${connection_string}":~ - -# LEGO_CERT_KEY_PATH is an environment variable -#shellcheck disable=SC2154 -scp "${ssh_args[@]}" "${LEGO_CERT_KEY_PATH}" "${connection_string}":~ - -ssh "${ssh_args[@]}" -tt "${connection_string}" "sudo mv ~/*.crt ~/*.key /etc/prosody/certs" -ssh "${ssh_args[@]}" -tt "${connection_string}" "sudo chown -R prosody:prosody /etc/prosody/certs" -ssh "${ssh_args[@]}" -tt "${connection_string}" "sudo service prosody reload" -- cgit v1.2.3