mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
letsencrypt: directly call certbot in action script
This commit is contained in:
parent
2fb9ec052f
commit
320b993c4d
@ -124,7 +124,7 @@ def subcommand_revoke(arguments):
|
||||
"""Disable a domain and revoke the certificate."""
|
||||
domain = arguments.domain
|
||||
|
||||
command = ['letsencrypt', 'revoke', '--domain', domain, '--cert-path',
|
||||
command = ['certbot', 'revoke', '--domain', domain, '--cert-path',
|
||||
os.path.join(LIVE_DIRECTORY, domain, 'cert.pem')]
|
||||
if TEST_MODE:
|
||||
command.append('--staging')
|
||||
@ -144,7 +144,7 @@ def subcommand_obtain(arguments):
|
||||
domain = arguments.domain
|
||||
|
||||
command = [
|
||||
'letsencrypt', 'certonly', '--text', '--agree-tos',
|
||||
'certbot', 'certonly', '--text', '--agree-tos',
|
||||
'--register-unsafely-without-email', '--domain', arguments.domain,
|
||||
'--authenticator', 'webroot', '--webroot-path', '/var/www/html/',
|
||||
'--renew-by-default']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user