#!/bin/sh # prerm script for zero-lliurex-jitsi # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) systemctl stop jitsi-server || true # For now, epic can't run from debian scripts # epic -u uninstall /usr/share/zero-lliurex-jitsi/jitsi-server.epi || true bash /usr/share/zero-lliurex-jitsi/jitsi-server_script remove || true zero-center set-non-configured zero-lliurex-jitsi || true if [ -f "/var/lib/jitsi-server/docker-compose.yml" ]; then docker-compose -f /var/lib/jitsi-server/docker-compose.yml down -v --remove-orphans || true fi if [ -d "/var/lib/jitsi-server" ]; then rm -rf /var/lib/jitsi-server fi ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0