13 lines
262 B
Python
13 lines
262 B
Python
#!/usr/bin/python3
|
|
|
|
import configparser
|
|
import os
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read('/etc/letsencrypt/renew.cfg')
|
|
|
|
for domain in os.environ['RENEWED_DOMAINS'].split(' '):
|
|
try:
|
|
os.system(config.get('default', domain))
|
|
except:
|
|
continue
|