Files
skato-ansible/roles/init-server/files/letsencrypt/renewal-hooks/post/up-dependents.sh

17 lines
360 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
HTTP_SERVERS=()
HTTP_SERVERS_LEN="${#HTTP_SERVERS[@]}"
if command -v systemctl > /dev/null 2>&1; then
if (( HTTP_SERVERS_LEN > 0 )); then
for htserv in "${HTTP_SERVERS[@]}"
do
sudo systemctl start "$htserv"
done
fi
fi
if command -v podman > /dev/null 2>&1; then
podman start -a
fi