|
@@ -0,0 +1,47 @@
|
|
1
|
+#!/bin/sh
|
|
2
|
+STORAGE_KEY = "KEYHERE"
|
|
3
|
+STORAGE_SECRET = "SECRETHERE"
|
|
4
|
+STORAGE_NAME = "NAMEHERE"
|
|
5
|
+
|
|
6
|
+########################### ADD STORAGE ####################################
|
|
7
|
+apt-get install -y s3fs
|
|
8
|
+echo "$STORAGE_KEY:$STORAGE_SECRET" > /root/.passwd-s3fs
|
|
9
|
+chown 600 /root/.passwd-s3fs
|
|
10
|
+
|
|
11
|
+mkdir -p /mnt/storage01
|
|
12
|
+
|
|
13
|
+# Creating FSTAB backup
|
|
14
|
+cp /etc/fstab /etc/fstab.bak
|
|
15
|
+
|
|
16
|
+# Adding Storate to FSTAB
|
|
17
|
+echo "s3fs#$STORAGE_NAME /mnt/storage01 fuse allow_other,use_path_request_style,passwd_file=/root/.passwd-s3fs,_netdev,nosuid,uid=1000,gid=1000,nodev,url=https://nyc3.digitaloceanspaces.com 0 0" >> /etc/fstab
|
|
18
|
+
|
|
19
|
+mount -a
|
|
20
|
+
|
|
21
|
+########################### SHARED VOLUME ####################################
|
|
22
|
+# Create the spool directory for recording transfer from BigBlueButton
|
|
23
|
+ln -s /mnt/storage01/spool /mnt/scalelite-recordings/var/bigbluebutton
|
|
24
|
+chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/spool
|
|
25
|
+chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/spool
|
|
26
|
+
|
|
27
|
+# Create the temporary (working) directory for recording import
|
|
28
|
+mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
|
|
29
|
+chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
|
|
30
|
+chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
|
|
31
|
+
|
|
32
|
+# Create the directory for published recordings
|
|
33
|
+mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/published
|
|
34
|
+chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/published
|
|
35
|
+chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/published
|
|
36
|
+
|
|
37
|
+# Create the directory for unpublished recordings
|
|
38
|
+mkdir -p /mnt/scalelite-recordings/var/bigbluebutton/unpublished
|
|
39
|
+chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/unpublished
|
|
40
|
+chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/unpublished
|
|
41
|
+
|
|
42
|
+########################### REPO CLONING ####################################
|
|
43
|
+
|
|
44
|
+git clone http://git.bluekitsune.com/bluekitsune-public/scalelite-run.git
|
|
45
|
+cd scalelite-run
|
|
46
|
+docker-compose up -d
|
|
47
|
+
|