Browse Source

Remove old profanity package if it is present

Bob Mottram 8 years ago
parent
commit
b0c494b76d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-app-xmpp

+ 4
- 0
src/freedombone-app-xmpp View File

@@ -200,6 +200,10 @@ function upgrade_xmpp {
200 200
     systemctl restart prosody
201 201
 
202 202
     # update profanity client
203
+    if [ -f /usr/bin/profanity ]; then
204
+        apt-get -y remove --purge profanity
205
+    fi
206
+
203 207
     function_check set_repo_commit
204 208
     set_repo_commit $INSTALL_DIR/libmesode "libmesode commit" "$LIBMESODE_COMMIT" $LIBMESODE_REPO
205 209
     cd $INSTALL_DIR/libmesode