bigbluebutton-Github/build/packages-template/bbb-config/after-remove.sh
Daniel Schreiber 52112cde87 build: allow bbb nginx config hook for operators
Sometimes operators need to tweak the nginx config. They should not
modify config files provided by the packages. Instead they should add
their own config files in `/etc/bigbluebutton/nginx/`. This patch links
the default config provided by packages into this directory.
2022-04-04 22:30:49 +02:00

18 lines
492 B
Bash

#!/bin/bash -e
case "$1" in
remove|failed-upgrade|abort-upgrade|abort-install|disappear)
;;
purge)
# remove file deployed by after-install script if it is still a symlink
if [ "x$(readlink -f /etc/bigbluebutton/nginx/include_default.nginx)" = x/usr/share/bigbluebutton/include_default.nginx ] ; then
rm /etc/bigbluebutton/nginx/include_default.nginx
fi
;;
upgrade)
;;
*)
echo "postinst called with unknown argument \`\$1'" >&2
;;
esac