mirror of
https://github.com/certbot/certbot.git
synced 2026-04-07 10:07:34 -04:00
* Fully type certbot-ci module * Fix lint, focus lint * Add trailing comma * Remove unused private function * Type properly for future usages * Update certbot-ci/certbot_integration_tests/utils/acme_server.py Co-authored-by: alexzorin <alex@zor.io> * Cleanup files * Fix import * Fix mypy and lint Co-authored-by: alexzorin <alex@zor.io>
12 lines
402 B
Python
Executable file
12 lines
402 B
Python
Executable file
#!/usr/bin/env python
|
|
"""A Certbot hook for probing."""
|
|
import os
|
|
import sys
|
|
|
|
hook_script_type = os.path.basename(os.path.dirname(sys.argv[1]))
|
|
if hook_script_type == 'deploy' and ('RENEWED_DOMAINS' not in os.environ
|
|
or 'RENEWED_LINEAGE' not in os.environ):
|
|
sys.stderr.write('Environment variables not properly set!\n')
|
|
sys.exit(1)
|
|
|
|
print(hook_script_type)
|