bigbluebutton-Github/build/packages-template/bbb-webhooks/before-install.sh
2021-08-13 12:53:18 +02:00

29 lines
563 B
Bash
Executable File

#!/bin/bash -e
case "$1" in
install|upgrade|1|2)
#
# remember setting for sip
#
rm -f /tmp/webhooks.nginx
if [ -f /etc/bigbluebutton/nginx/webhooks.nginx ]; then
cp /etc/bigbluebutton/nginx/webhooks.nginx /tmp/webhooks.nginx
fi
rm -f /tmp/bbb-webhooks-default.yml
if [ -f /usr/local/bigbluebutton/bbb-webhooks/config/default.yml ]; then
cp /usr/local/bigbluebutton/bbb-webhooks/config/default.yml /tmp/bbb-webhooks-default.yml
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac