mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
* Isort execution * Fix pylint, adapt coverage * New isort * Fix magic_typing lint * Second round * Fix pylint * Third round. Store isort configuration * Fix latest mistakes * Other fixes * Add newline * Fix lint errors
11 lines
388 B
Python
Executable file
11 lines
388 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)
|
|
|
|
with open(sys.argv[2], 'a') as file_h:
|
|
file_h.write(hook_script_type + '\n')
|