mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-25 13:15:12 +02:00
12 lines
339 B
Text
12 lines
339 B
Text
case "${ACTION}" in
|
|
post)
|
|
# Set CAP_NET_BIND_SERVICE capability or exit gracefully if we cannot set the capability
|
|
# due to invalid permissions (fakeroot install).
|
|
set +e
|
|
setcap 'cap_net_bind_service=+ep' /usr/bin/ldap
|
|
if [ $? -ne 0 ]; then
|
|
echo "ERROR: failed to set cap_net_bind_service capability on ldap."
|
|
exit 0
|
|
fi
|
|
;;
|
|
esac
|