diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-05-29 18:16:11 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-05-29 18:16:11 +0100 |
commit | a960b23caebd5362b5f292f73c6e41ebee2ad98c (patch) | |
tree | 3943738dd0407dc3ed766cddc737825805a6aea5 /install-for-prosody | |
parent | d7e965843eb32fc2e459a15fe70251964ff40394 (diff) |
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.
Diffstat (limited to 'install-for-prosody')
-rwxr-xr-x | install-for-prosody | 23 |
1 files changed, 0 insertions, 23 deletions
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 <matthew@fennell.dev> -# -# 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" |