mirror of
https://github.com/frappe/bench.git
synced 2025-01-26 08:08:23 +00:00
perf: Remove crontab from the import tree
This commit is contained in:
parent
6c0e1a359e
commit
e12717d63a
@ -3,7 +3,6 @@ import os
|
|||||||
|
|
||||||
# imports - third party imports
|
# imports - third party imports
|
||||||
import click
|
import click
|
||||||
from crontab import CronTab
|
|
||||||
from six.moves.urllib.request import urlretrieve
|
from six.moves.urllib.request import urlretrieve
|
||||||
|
|
||||||
# imports - module imports
|
# imports - module imports
|
||||||
@ -86,6 +85,8 @@ def run_certbot_and_setup_ssl(site, custom_domain, bench_path, interactive=True)
|
|||||||
|
|
||||||
|
|
||||||
def setup_crontab():
|
def setup_crontab():
|
||||||
|
from crontab import CronTab
|
||||||
|
|
||||||
job_command = '/opt/certbot-auto renew -a nginx --post-hook "systemctl reload nginx"'
|
job_command = '/opt/certbot-auto renew -a nginx --post-hook "systemctl reload nginx"'
|
||||||
job_comment = 'Renew lets-encrypt every month'
|
job_comment = 'Renew lets-encrypt every month'
|
||||||
print("Setting Up cron job to {0}".format(job_comment))
|
print("Setting Up cron job to {0}".format(job_comment))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user