void-packages/srcpkgs/pam/INSTALL

17 lines
478 B
Text
Raw Normal View History

# This script creates the pam_namespace(8) instance directories
# for /tmp and /var/tmpfs, they are created from /tmp/.tmp_inst
# and /var/tmp/.tmp_inst respectively.
#
case "${ACTION}" in
post)
if [ ! -d tmp/.tmp_inst ]; then
mkdir -m 0000 tmp/.tmp_inst || exit $?
echo "Created pam_namespace(8) /tmp instance dir."
fi
if [ ! -d var/tmp/.tmp_inst ]; then
mkdir -m 0000 var/tmp/.tmp_inst || exit $?
echo "Created pam_namespace(8) /var/tmp instance dir."
fi
;;
esac