freeipa/debian/freeipa-client.postinst
2021-10-03 12:04:33 +02:00

18 lines
334 B
Bash

#!/bin/sh
set -e
LOGFILE=/var/log/ipaclient-upgrade.log
if [ "$1" = configure ]; then
if [ -f /etc/ipa/nssdb/cert8.db ]; then
python2 -c 'from ipaclient.install.client import update_ipa_nssdb; update_ipa_nssdb()' \
> $LOGFILE 2>&1
fi
fi
if [ ! -e /run/ipa ]; then
mkdir -m 0700 /run/ipa
fi
#DEBHELPER#