bigbluebutton-Github/build/packages-template/bbb-graphql-actions/before-install.sh

22 lines
627 B
Bash
Raw Normal View History

#!/bin/bash -e
case "$1" in
install|upgrade|1|2)
# handle renaming circa dec 2023
if [[ -d /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server ]] ; then
stopService bbb-graphql-actions-adapter-server || echo "bbb-graphql-actions-adapter-server could not be unregistered or stopped"
rm -f /usr/lib/systemd/system/bbb-graphql-actions-adapter-server.service
systemctl daemon-reload
rm -rf /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server/
fi
;;
abort-upgrade)
;;
*)
echo "## preinst called with unknown argument \`$1'" >&2
;;
esac