diff options
Diffstat (limited to 'security/cyrus-sasl2/pkg-deinstall')
-rw-r--r-- | security/cyrus-sasl2/pkg-deinstall | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/security/cyrus-sasl2/pkg-deinstall b/security/cyrus-sasl2/pkg-deinstall index 3934276141a9..605204426f06 100644 --- a/security/cyrus-sasl2/pkg-deinstall +++ b/security/cyrus-sasl2/pkg-deinstall @@ -12,6 +12,9 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local} SASLDB_NAME=${PKG_PREFIX}/etc/%%SASLDB%% +CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%} +CYRUS_GROUP=${CYRUS_GROUP:=%%CYRUS_GROUP%%} + # delete sasldb database delete_sasldb() { @@ -25,11 +28,11 @@ delete_sasldb() { } delete_user() { - if pw usershow cyrus 2>/dev/null 1>&2; then - echo "To delete Cyrus user permanently, use 'pw userdel cyrus'" + if pw usershow ${CYRUS_USER} 2>/dev/null 1>&2; then + echo "To delete Cyrus user permanently, use 'pw userdel ${CYRUS_USER}'" fi - if pw groupshow cyrus 2>/dev/null 1>&2; then - echo "To delete Cyrus group permanently, use 'pw groupdel cyrus'" + if pw groupshow ${CYRUS_GROUP} 2>/dev/null 1>&2; then + echo "To delete Cyrus group permanently, use 'pw groupdel ${CYRUS_GROUP}'" fi } |