mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
There are still some left, but the `modification_check` test fails. Some are still in `tools`, and they can probably be removed as well. `with_statement` was introduced officially in Python 2.5, so there's really old stuff in the code base.
10 lines
331 B
Python
Executable file
10 lines
331 B
Python
Executable file
#!/usr/bin/env python
|
|
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)
|