#!/bin/sh set -e #DEBHELPER# case "$1" in configure) if [ -z "$2" ]; then adduser --system repository addgroup --system repo # Clean up the old sudoers block, then add it back perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers cat >>/etc/sudoers <&2 exit 1 ;; esac