If profanity is installed then remove it when xmpp is removed

This commit is contained in:
Bob Mottram 2017-05-16 21:26:24 +01:00
parent dd387dffee
commit 8304c7f2e8
2 changed files with 7 additions and 4 deletions

View File

@ -174,11 +174,13 @@ function restore_remote_profanity {
}
function remove_profanity {
cd $INSTALL_DIR/profanity
make uninstall
if [ -f /usr/local/bin/profanity ]; then
cd $INSTALL_DIR/profanity
make uninstall
remove_completion_param install_profanity
sed -i '/profanity/d' $COMPLETION_FILE
remove_completion_param install_profanity
sed -i '/profanity/d' $COMPLETION_FILE
fi
}
function install_profanity {

View File

@ -493,6 +493,7 @@ function configure_firewall_for_xmpp {
}
function remove_xmpp {
remove_profanity
firewall_remove 5222 tcp
firewall_remove 5223 tcp
firewall_remove 5269 tcp