Package template files for bbb-playback-video
This commit is contained in:
parent
0eaad64907
commit
a838ad1ab8
41
build/packages-template/bbb-playback-video/after-install.sh
Executable file
41
build/packages-template/bbb-playback-video/after-install.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
DISTRIB_ID=centos
|
||||
else
|
||||
. /etc/lsb-release # Get value for DISTRIB_ID
|
||||
fi
|
||||
|
||||
BIGBLUEBUTTON_USER=bigbluebutton
|
||||
|
||||
case "$1" in
|
||||
configure|upgrade|1|2)
|
||||
|
||||
TARGET=/usr/local/bigbluebutton/core/scripts/video.yml
|
||||
|
||||
chmod +r $TARGET
|
||||
|
||||
mkdir -p /var/bigbluebutton/published/video
|
||||
chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/published/video
|
||||
chmod -R o+rx /var/bigbluebutton/published/
|
||||
|
||||
mkdir -p /var/log/bigbluebutton/video
|
||||
chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/log/bigbluebutton/video
|
||||
|
||||
mkdir -p /var/bigbluebutton/recording/publish/video
|
||||
chown -R $BIGBLUEBUTTON_USER:$BIGBLUEBUTTON_USER /var/bigbluebutton/recording/publish/video
|
||||
|
||||
if [ -f /var/bigbluebutton/published/video/index.html ]; then
|
||||
rm /var/bigbluebutton/published/video/index.html
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "## postinst called with unknown argument \`$1'" >&2
|
||||
;;
|
||||
esac
|
||||
|
44
build/packages-template/bbb-playback-video/build.sh
Executable file
44
build/packages-template/bbb-playback-video/build.sh
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
TARGET=`basename $(pwd)`
|
||||
|
||||
|
||||
PACKAGE=$(echo $TARGET | cut -d'_' -f1)
|
||||
VERSION=$(echo $TARGET | cut -d'_' -f2)
|
||||
DISTRO=$(echo $TARGET | cut -d'_' -f3)
|
||||
|
||||
#
|
||||
# Clear staging directory for build
|
||||
rm -rf staging
|
||||
|
||||
#
|
||||
# Create build directories for markign by fpm
|
||||
DIRS=""
|
||||
for dir in $DIRS; do
|
||||
mkdir -p staging$dir
|
||||
DIRECTORIES="$DIRECTORIES --directories $dir"
|
||||
done
|
||||
|
||||
##
|
||||
|
||||
mkdir -p staging/usr/local/bigbluebutton/core
|
||||
cp -r scripts staging/usr/local/bigbluebutton/core
|
||||
cp -r playback staging/user/local/bigbluebutton/core
|
||||
|
||||
mkdir -p staging/usr/share/bigbluebutton/nginx
|
||||
mv staging/usr/local/bigbluebutton/core/scripts/playback-video.nginx staging/usr/share/bigbluebutton/nginx
|
||||
|
||||
##
|
||||
|
||||
. ./opts-$DISTRO.sh
|
||||
|
||||
#
|
||||
# Build package
|
||||
fpm -s dir -C ./staging -n $PACKAGE \
|
||||
--version $VERSION --epoch $EPOCH \
|
||||
--post-install before-install.sh \
|
||||
--after-install after-install.sh \
|
||||
--description "BigBluebutton playback of presentation" \
|
||||
$DIRECTORIES \
|
||||
$OPTS \
|
||||
-d 'yq (>= 3)' -d 'yq (<< 4)'
|
3
build/packages-template/bbb-playback-video/opts-focal.sh
Executable file
3
build/packages-template/bbb-playback-video/opts-focal.sh
Executable file
@ -0,0 +1,3 @@
|
||||
. ./opts-global.sh
|
||||
|
||||
OPTS="$OPTS -t deb -d bbb-record-core -d bbb-presentation-video"
|
Loading…
Reference in New Issue
Block a user