Skip to content

Commit

Permalink
Merge pull request #2607 from phillxnet/2606_Cherry-pick_-_SSL_Certif…
Browse files Browse the repository at this point in the history
…icate_update_doesn't_reload_nginx

SSL Certificate update doesn't reload nginx #2606
  • Loading branch information
phillxnet committed Jul 10, 2023
2 parents cc21741 + cc105a1 commit ed41132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rockstor/storageadmin/views/tls_certificate.py
Expand Up @@ -26,7 +26,7 @@
from shutil import move
from tempfile import mkstemp
from django.conf import settings
from system.services import superctl
from system.services import systemctl
import logging

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -89,5 +89,5 @@ def post(self, request):
handle_exception(Exception(e_msg), request)
move(cpath, "%s/rockstor.cert" % settings.CERTDIR)
move(kpath, "%s/rockstor.key" % settings.CERTDIR)
superctl("nginx", "restart")
systemctl("nginx", "reload")
return Response(TLSCertificateSerializer(co).data)

0 comments on commit ed41132

Please sign in to comment.