summaryrefslogtreecommitdiffstats
path: root/install/restart_scripts/renew_ra_cert_pre
blob: d0f743c099162e4c5afd7d96287e58492246db35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python2 -E
#
# 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())