mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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."""
|
"""Disable a domain and revoke the certificate."""
|
||||||
domain = arguments.domain
|
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')]
|
os.path.join(LIVE_DIRECTORY, domain, 'cert.pem')]
|
||||||
if TEST_MODE:
|
if TEST_MODE:
|
||||||
command.append('--staging')
|
command.append('--staging')
|
||||||
@ -144,7 +144,7 @@ def subcommand_obtain(arguments):
|
|||||||
domain = arguments.domain
|
domain = arguments.domain
|
||||||
|
|
||||||
command = [
|
command = [
|
||||||
'letsencrypt', 'certonly', '--text', '--agree-tos',
|
'certbot', 'certonly', '--text', '--agree-tos',
|
||||||
'--register-unsafely-without-email', '--domain', arguments.domain,
|
'--register-unsafely-without-email', '--domain', arguments.domain,
|
||||||
'--authenticator', 'webroot', '--webroot-path', '/var/www/html/',
|
'--authenticator', 'webroot', '--webroot-path', '/var/www/html/',
|
||||||
'--renew-by-default']
|
'--renew-by-default']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user