Browse Source

Adding Published File conf

Now published recordings are being stored in the space instead of the disk.
master
lmartin 4 years ago
parent
commit
fa7f83c5f4
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      scalelite-setup.sh

+ 5
- 4
scalelite-setup.sh View File

6
 ########################### ADD STORAGE   ####################################
6
 ########################### ADD STORAGE   ####################################
7
 apt-get install -y s3fs
7
 apt-get install -y s3fs
8
 echo "$STORAGE_KEY:$STORAGE_SECRET" > /root/.passwd-s3fs
8
 echo "$STORAGE_KEY:$STORAGE_SECRET" > /root/.passwd-s3fs
9
-chown 600 /root/.passwd-s3fs
9
+chmod 600 /root/.passwd-s3fs
10
 
10
 
11
 mkdir -p /mnt/storage01
11
 mkdir -p /mnt/storage01
12
+mkdir -p /mnt/storage01/published
12
 
13
 
13
 # Creating FSTAB backup
14
 # Creating FSTAB backup
14
 cp /etc/fstab /etc/fstab.bak
15
 cp /etc/fstab /etc/fstab.bak
21
 ########################### SHARED VOLUME ####################################
22
 ########################### SHARED VOLUME ####################################
22
 # Create the spool directory for recording transfer from BigBlueButton
23
 # Create the spool directory for recording transfer from BigBlueButton
23
 ln -s /mnt/storage01/spool /mnt/scalelite-recordings/var/bigbluebutton
24
 ln -s /mnt/storage01/spool /mnt/scalelite-recordings/var/bigbluebutton
24
-chown 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/spool
25
+chown -h 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/spool
25
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/spool
26
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/spool
26
 
27
 
27
 # Create the temporary (working) directory for recording import
28
 # Create the temporary (working) directory for recording import
30
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
31
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/recording/scalelite
31
 
32
 
32
 # Create the directory for published recordings
33
 # 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
34
+ln -s /mnt/storage01/published /mnt/scalelite-recordings/var/bigbluebutton/published
35
+chown -h 1000:1000 /mnt/scalelite-recordings/var/bigbluebutton/published
35
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/published
36
 chmod 0775 /mnt/scalelite-recordings/var/bigbluebutton/published
36
 
37
 
37
 # Create the directory for unpublished recordings
38
 # Create the directory for unpublished recordings

Loading…
Cancel
Save