2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

perf: Remove crontab from the import tree

This commit is contained in:
Aditya Hase 2021-02-21 10:03:36 +05:30
parent 6c0e1a359e
commit e12717d63a
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972

View File

@ -3,7 +3,6 @@ import os
# imports - third party imports
import click
from crontab import CronTab
from six.moves.urllib.request import urlretrieve
# imports - module imports
@ -86,6 +85,8 @@ def run_certbot_and_setup_ssl(site, custom_domain, bench_path, interactive=True)
def setup_crontab():
from crontab import CronTab
job_command = '/opt/certbot-auto renew -a nginx --post-hook "systemctl reload nginx"'
job_comment = 'Renew lets-encrypt every month'
print("Setting Up cron job to {0}".format(job_comment))