bigbluebutton-Github/build/packages-template/bbb-webrtc-recorder/after-install.sh

22 lines
427 B
Bash
Raw Normal View History

2023-04-19 04:02:26 +08:00
#!/bin/bash -e
BIGBLUEBUTTON_USER=bigbluebutton
case "$1" in
configure|upgrade|1|2)
if id $BIGBLUEBUTTON_USER > /dev/null 2>&1 ; then
chown $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/lib/bbb-webrtc-recorder
chmod 0700 /var/lib/bbb-webrtc-recorder
fi
systemctl enable bbb-webrtc-recorder
;;
*)
echo "## postinst called with unknown argument \`$1'" >&2
;;
esac
systemctl daemon-reload