Bläddra i källkod

Remove bdsmail if previously installed

Bob Mottram 7 år sedan
förälder
incheckning
218875928e
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4
    1
      src/freedombone-app-bdsmail

+ 4
- 1
src/freedombone-app-bdsmail Visa fil

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