#!/bin/sh -e # inspired by the tor postinst script # checking op group gid=`getent group op | cut -d ":" -f 3` # if there is the uid the account is there and we can do # the sanit(ar)y checks otherwise we can safely create it. if [ -z "$gid" ]; then # what this might mean?? oh creating a system l^Huser! addgroup --quiet \ --system \ op fi # only do something when no setting exists if ! dpkg-statoverride --list /usr/bin/op >/dev/null 2>&1 ; then dpkg-statoverride --update --add root op 4755 /usr/bin/op fi #DEBHELPER# exit 0