apache: Only regenerate snake oil cert when needed

Closes #1230.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2018-03-24 20:12:51 -04:00
1 parent b057a57dec
commit 7b326870da
3 files changed
+25 -6

No files matched your search

+2 -1
View File
@@ -30,4 +30,5 @@ managed_packages = ['apache2', 'libapache2-mod-gnutls', 'libapache2-mod-php']
def setup(helper, old_version=None):
"""Configure the module."""
helper.install(managed_packages)
actions.superuser_run('apache', ['setup'])
actions.superuser_run('apache',
['setup', '--old-version', str(old_version)])