diff --git a/debian/freeswitch.prerm b/debian/freeswitch.prerm index f5448bcee4..9f34f0b371 100644 --- a/debian/freeswitch.prerm +++ b/debian/freeswitch.prerm @@ -3,7 +3,9 @@ set -e case "$1" in remove|upgrade|deconfigure) - echo "We're about to remove FreeSWITCH..." >&2 + if [ -d /etc/freeswitch ]; then + echo "We're about to remove a configured FreeSWITCH..." >&2 + fi ;; failed-upgrade) ;;