freeipa/install/restart_scripts/renew_ra_cert_pre.in
2021-10-03 11:06:28 +02:00

19 lines
314 B
Python

#!/usr/bin/python3
#
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import syslog
import traceback
from ipaserver.install import certs
def main():
certs.renewal_lock.acquire('renew_ra_cert')
try:
main()
except Exception:
syslog.syslog(syslog.LOG_ERR, traceback.format_exc())