Browse Source

Remove bdsmail if previously installed

Bob Mottram 7 years ago
parent
commit
218875928e
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/freedombone-app-bdsmail

+ 4
- 1
src/freedombone-app-bdsmail View File

@@ -173,12 +173,15 @@ function remove_bdsmail {
173 173
     remove_completion_param install_bdsmail
174 174
     sed -i '/bdsmail/d' $COMPLETION_FILE
175 175
     rm -rf /etc/skel/.mutt
176
+    if [ -d /etc/bdsmail ]; then
177
+        rm -rf /etc/bdsmail
178
+    fi
176 179
     remove_i2p
177 180
 }
178 181
 
179 182
 function install_bdsmail {
180 183
     if [ -d /etc/bdsmail ]; then
181
-        rm -rf /etc/bdsmail
184
+        remove_bdsmail
182 185
     fi
183 186
 
184 187
     if [ -d /repos/bdsmail ]; then