docker/mod/core/entrypoint.sh
chandi 01c7de4bef core: fix volume permissions on runtime.
it led once to permission issues where the UID changed after rebuild.
2020-05-16 15:54:48 +02:00

25 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# print logs to stdout/stderr as soon as systemd is started
sh -c 'sleep 5 && journalctl -f' &
# generate bbb folders
mkdir -p /var/bigbluebutton/recording/raw
mkdir -p /var/bigbluebutton/recording/process
mkdir -p /var/bigbluebutton/recording/publish
mkdir -p /var/bigbluebutton/recording/status/recorded
mkdir -p /var/bigbluebutton/recording/status/archived
mkdir -p /var/bigbluebutton/recording/status/processed
mkdir -p /var/bigbluebutton/recording/status/sanity
mkdir -p /var/bigbluebutton/published
mkdir -p /var/bigbluebutton/deleted
mkdir -p /var/bigbluebutton/unpublished
# -- fix directory permissions
RUN chown bigbluebutton:bigbluebutton /var/bigbluebutton
dockerize \
-template /opt/freeswitch/conf/vars.xml.tmpl:/opt/freeswitch/conf/vars.xml \
-template /usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties.tmpl:/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties \
-template /usr/share/bbb-apps-akka/conf/application.conf.tmpl:/usr/share/bbb-apps-akka/conf/application.conf \
/bin/systemd --system --unit=multi-user.target