From c0933e27ab34949e677de53a0ed8ce4b3b7d296a Mon Sep 17 00:00:00 2001 From: Sofyan Sugianto Date: Fri, 12 Jun 2020 07:44:26 +0700 Subject: [PATCH] fix file permission --- mod/core/Dockerfile | 4 +++- mod/core/entrypoint.sh | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/mod/core/Dockerfile b/mod/core/Dockerfile index a7e9dde..649b715 100644 --- a/mod/core/Dockerfile +++ b/mod/core/Dockerfile @@ -68,7 +68,9 @@ COPY bbb-transcode-akka/application.conf /etc/bbb-transcode-akka/application.con COPY web-run.sh /usr/share/bbb-web/run-prod.sh COPY bbb-playback-presentation/presentation.yml /usr/local/bigbluebutton/core/scripts/ COPY bbb-playback-presentation/recorder-monitor.py /usr/local/bin -RUN mkdir -p /usr/src/bbb-playback-presentation && cp -r /var/bigbluebutton/playback /usr/src/bbb-src-playback +RUN chmod +x /usr/local/bin/recorder-monitor.py && \ +mkdir -p /usr/src/bbb-playback-presentation && \ +cp -r /var/bigbluebutton/playback/* /usr/src/bbb-src-playback COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY entrypoint.sh /entrypoint.sh diff --git a/mod/core/entrypoint.sh b/mod/core/entrypoint.sh index 0ac1b6f..7db1033 100755 --- a/mod/core/entrypoint.sh +++ b/mod/core/entrypoint.sh @@ -13,13 +13,14 @@ mkdir -p /var/bigbluebutton/recording/status/sanity mkdir -p /var/bigbluebutton/published mkdir -p /var/bigbluebutton/deleted mkdir -p /var/bigbluebutton/unpublished +mkdir -p /var/bigbluebutton/playback + +# add playback-presentation to /var/bigbluebutton volume +cp -r /usr/src/bbb-src-playback/* /var/bigbluebutton/playback # -- fix directory permissions chown -R bigbluebutton:bigbluebutton /var/bigbluebutton -# add playback-presentation to /var/bigbluebutton volume -cp -r /usr/src/bbb-src-playback /var/bigbluebutton/playback - dockerize \ -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 \