matthewtran.com/website/cert_update.py
2024-09-17 02:11:32 +00:00

11 lines
211 B
Python

#!/usr/bin/env python3
import subprocess
import time
if __name__ == '__main__':
while True:
# try renew once a day
subprocess.run(['certbot', 'renew', '--quiet'])
time.sleep(86400)