2022-07-07 04:51:57 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
configure|upgrade|1|2)
|
2022-07-13 09:35:17 +08:00
|
|
|
|
2023-03-07 22:52:08 +08:00
|
|
|
fc-cache -f
|
2022-07-13 09:35:17 +08:00
|
|
|
if [ ! -f /.dockerenv ]; then
|
|
|
|
systemctl enable bbb-export-annotations.service
|
|
|
|
systemctl daemon-reload
|
|
|
|
startService bbb-export-annotations.service || echo "bbb-export-annotations service could not be registered or started"
|
|
|
|
fi
|
2022-07-07 04:51:57 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|