diff --git a/build/packages-template/bbb-config/after-install.sh b/build/packages-template/bbb-config/after-install.sh index c1370e276f..02301ca47e 100644 --- a/build/packages-template/bbb-config/after-install.sh +++ b/build/packages-template/bbb-config/after-install.sh @@ -140,9 +140,10 @@ else sed -i 's/events {/worker_rlimit_nofile 10000;\n\nevents {/g' /etc/nginx/nginx.conf fi +mkdir -p /etc/bigbluebutton/nginx + # symlink default bbb nginx config from package if it does not exist if [ ! -e /etc/bigbluebutton/nginx/include_default.nginx ] ; then - mkdir -p /etc/bigbluebutton/nginx ln -s /usr/share/bigbluebutton/include_default.nginx /etc/bigbluebutton/nginx/include_default.nginx fi @@ -165,5 +166,11 @@ removeOldOverride bbb-fsesl-akka removeOldOverride bbb-transcode-akka +# re-create the symlink for apply-lib.sh to ensure the latest version is present +if [ -f /usr/lib/bbb-conf/apply-lib.sh ] && [ -f /etc/bigbluebutton/bbb-conf/apply-lib.sh ]; then + rm /etc/bigbluebutton/bbb-conf/apply-lib.sh + ln -s /etc/bigbluebutton/bbb-conf/apply-lib.sh /usr/lib/bbb-conf/apply-lib.sh +fi + # Load the overrides systemctl daemon-reload diff --git a/build/packages-template/bbb-config/build.sh b/build/packages-template/bbb-config/build.sh index 6f4c44542a..410770afa9 100755 --- a/build/packages-template/bbb-config/build.sh +++ b/build/packages-template/bbb-config/build.sh @@ -43,7 +43,8 @@ cp bin/bbb-conf bin/bbb-record staging/usr/bin chmod +x staging/usr/bin/bbb-conf mkdir -p staging/etc/bigbluebutton/bbb-conf -cp bin/apply-lib.sh staging/etc/bigbluebutton/bbb-conf +mkdir -p staging/usr/lib/bbb-conf +cp bin/apply-lib.sh staging/usr/lib/bbb-conf mkdir -p staging/etc/cron.daily cp cron.daily/* staging/etc/cron.daily