2021-08-13 18:53:18 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2024-08-10 01:58:44 +08:00
|
|
|
log() {
|
|
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
|
|
|
|
}
|
|
|
|
|
2021-08-13 18:53:18 +08:00
|
|
|
case "$1" in
|
2024-08-10 01:58:44 +08:00
|
|
|
remove|failed-upgrade|abort-upgrade|abort-install|disappear|0|1)
|
|
|
|
if [ -L /etc/nginx/sites-enabled/bigbluebutton ]; then
|
|
|
|
rm /etc/nginx/sites-enabled/bigbluebutton
|
|
|
|
log "Removed symbolic link /etc/nginx/sites-enabled/bigbluebutton"
|
|
|
|
fi
|
2021-08-13 18:53:18 +08:00
|
|
|
|
2024-08-10 01:58:44 +08:00
|
|
|
if [ -L /usr/share/bigbluebutton/html5-client ]; then
|
|
|
|
rm /usr/share/bigbluebutton/html5-client
|
|
|
|
log "Removed symbolic link /usr/share/bigbluebutton/html5-client"
|
|
|
|
fi
|
2021-08-13 18:53:18 +08:00
|
|
|
|
2024-09-26 00:39:04 +08:00
|
|
|
# legacy location of html5-client circa BBB 3.0.0-beta.1
|
2024-08-10 01:58:44 +08:00
|
|
|
if [ -d /var/bigbluebutton/html5-client ]; then
|
|
|
|
rm -rf /var/bigbluebutton/html5-client
|
|
|
|
log "Removed directory /var/bigbluebutton/html5-client"
|
|
|
|
fi
|
2024-09-26 00:39:04 +08:00
|
|
|
|
|
|
|
if [ -d /usr/share/bigbluebutton/html5-client ]; then
|
|
|
|
rm -rf /usr/share/bigbluebutton/html5-client
|
|
|
|
log "Removed directory /usr/share/bigbluebutton/html5-client"
|
|
|
|
fi
|
2024-08-10 01:58:44 +08:00
|
|
|
;;
|
|
|
|
upgrade)
|
|
|
|
log "Upgrade argument received. No action taken."
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "postinst called with unknown argument $1" >&2
|
|
|
|
log "Unknown argument: $1"
|
|
|
|
;;
|
2021-08-13 18:53:18 +08:00
|
|
|
esac
|