Browse Source

Fix restart unit condition on radosgw

This change just fixes the restart condition
for the radosgw file used when the certificate
is renewed.

Change-Id: Id3f76cd03c993d013090c7c764d6963a64a1c74f
changes/22/711922/1
Francesco Pantano 2 years ago
parent
commit
165ed10dc1
No known key found for this signature in database GPG Key ID: 799868C47301D458
  1. 2
      files/certmonger-rgw-refresh.sh

2
files/certmonger-rgw-refresh.sh

@ -4,6 +4,6 @@
rgw_unit=$(systemctl list-unit-files | awk '/radosgw/ {print $1}')
# Restart the rgw systemd unit
if [ -z "$rgw_unit" ]; then
if [ -n "$rgw_unit" ]; then
systemctl restart "$rgw_unit"
fi

Loading…
Cancel
Save