damaris-backends/debian/damaris-backends.postinst

16 lines
296 B
Plaintext
Raw Permalink Normal View History

#! /bin/sh -e
if grep nmr /etc/group >/dev/null; then
echo "group nmr already exists" ;
else
echo "creating group nmr" ;
groupadd nmr || echo "failed!"
fi
find /usr/lib/damaris/backends -type f \
\! -name dummycore \
-exec chgrp nmr {} \; \
-exec chmod u+s,o= {} \;
#DEBHELPER#