p11-kit/trust-extract-compat
2019-12-14 14:43:16 +08:00

21 lines
615 B
Bash

#!/bin/sh
# This script is a placeholder designed to be replaced when this software
# has been customized for distribution. It should be symlinked linked to the
# distribution's update-ca-certificates or update-ca-trust command as
# appropriate. In the future this script will be called when the PKCS#11
# trust module is used to modify trust anchors and related data.
if [ $# -ne 0 ]; then
echo "usage: trust extract-compat" >&2
exit 2
fi
uid=$(id -u)
if [ "$uid" != 0 ]; then
echo "trust: running as non-root user: skip extracting compat bundles" >&2
exit 0
fi
exec /usr/bin/update-ca-trust