created major large-scale changes
This commit is contained in:
17
roles/init-server/files/letsencrypt/renewal-hooks/post/up-dependents.sh
Executable file
17
roles/init-server/files/letsencrypt/renewal-hooks/post/up-dependents.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user