Skip to content

Commit

Permalink
perf: Remove crontab from the import tree
Browse files Browse the repository at this point in the history
  • Loading branch information
adityahase committed Feb 21, 2021
1 parent 6c0e1a3 commit e12717d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/config/lets_encrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# imports - third party imports
import click
from crontab import CronTab
from six.moves.urllib.request import urlretrieve

# imports - module imports
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e12717d

Please sign in to comment.