If profanity is installed then remove it when xmpp is removed
This commit is contained in:
parent
dd387dffee
commit
8304c7f2e8
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue