From 218875928e82b64a6c9db5063d64140802d67df8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Feb 2018 22:48:07 +0000 Subject: [PATCH] Remove bdsmail if previously installed --- src/freedombone-app-bdsmail | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail index 77a1ca0d..38478f65 100755 --- a/src/freedombone-app-bdsmail +++ b/src/freedombone-app-bdsmail @@ -173,12 +173,15 @@ function remove_bdsmail { remove_completion_param install_bdsmail sed -i '/bdsmail/d' $COMPLETION_FILE rm -rf /etc/skel/.mutt + if [ -d /etc/bdsmail ]; then + rm -rf /etc/bdsmail + fi remove_i2p } function install_bdsmail { if [ -d /etc/bdsmail ]; then - rm -rf /etc/bdsmail + remove_bdsmail fi if [ -d /repos/bdsmail ]; then