2023-09-30 07:08:38 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
configure|upgrade|1|2)
|
|
|
|
|
|
|
|
fc-cache -f
|
|
|
|
if [ ! -f /.dockerenv ]; then
|
2023-12-14 23:59:10 +08:00
|
|
|
systemctl enable bbb-graphql-actions.service
|
2023-09-30 07:08:38 +08:00
|
|
|
systemctl daemon-reload
|
2023-12-14 23:59:10 +08:00
|
|
|
startService bbb-graphql-actions.service || echo "bbb-graphql-actions service could not be registered or started"
|
2023-09-30 07:08:38 +08:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|