Skip to content

Commit 404995e

Browse files
committed
Add option to restart service
1 parent cf54da8 commit 404995e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

copy/var/zoneinit/includes/41-ssl.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ssl() {
66
local ssl_home=${1}
77
local mdata_var=${2}
88
local filename=${3}
9+
local service=${4-${filename}}
910

1011
mkdir -p "${ssl_home}"
1112

@@ -33,6 +34,7 @@ ssl() {
3334
grep -q '^#!/usr/bin/env bash' || echo '#!/usr/bin/env bash' > ${le_home}renew-hook.sh
3435
echo "cat ${le_live}fullchain.pem > ${ssl_home}/${filename}.crt" >> ${le_home}renew-hook.sh
3536
echo "cat ${le_live}privkey.pem > ${ssl_home}/${filename}.key" >> ${le_home}renew-hook.sh
37+
echo "svcadm restart ${service}" >> ${le_home}renew-hook.sh
3638
else
3739
# Fallback to selfsigned ssl certificates
3840
/opt/core/bin/ssl-selfsigned.sh -d ${ssl_home} -f ${filename}

0 commit comments

Comments
 (0)