Update scripts

This commit is contained in:
2025-12-23 09:18:10 +01:00
parent 9ff47166cc
commit bf27182e35
2 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,11 @@
#!/usr/bin/env bash
set -eu
shopt -s patsub_replacement
usage="Usage: $0 host email project_root"
usage="Usage: $0 host email"
host="${1:?$usage}"
email="${2:?$usage}"
root="${3:?$usage}"
services=(nextcloud gitea redmine)
nginx_dir="$root"/services/nginx
services=(www nextcloud gitea redmine)
# shellcheck disable=SC2068
sudo certbot certonly --cert-path "$nginx_dir"/server.crt --key-path "$nginx_dir"/server.key \
--manual --preferred-challenges dns --agree-tos --email "$email" ${services[@]/*/-d &."$host"}
sudo certbot certonly --manual --preferred-challenges dns --agree-tos --email "$email" ${services[@]/*/-d &."$host"} -d "$host"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -eu
usage="Usage: $0 host project_root"
host="${1:?$usage}"