void-packages/srcpkgs/vault/INSTALL

14 lines
320 B
Plaintext
Raw Normal View History

2020-10-18 11:10:52 +02:00
case "${ACTION}" in
post)
# Set CAP_IPC_LOCK capability or exit gracefully if we cannot
# set the capability due to invalid permissions (fakeroot
# install).
set +e
setcap 'cap_ipc_lock=+ep' /usr/bin/vault
if [ $? -ne 0 ]; then
echo "ERROR: failed to set cap_ipc_lock capability on vault."
exit 0
fi
;;
esac