summaryrefslogtreecommitdiff
path: root/init-recordings-bigbluebutton.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-recordings-bigbluebutton.sh')
-rwxr-xr-xinit-recordings-bigbluebutton.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/init-recordings-bigbluebutton.sh b/init-recordings-bigbluebutton.sh
index 86bd3ab..df8ead0 100755
--- a/init-recordings-bigbluebutton.sh
+++ b/init-recordings-bigbluebutton.sh
@@ -108,7 +108,9 @@ fi
echo "Host scalelite-spool" | sudo tee -a /home/bigbluebutton/.ssh/config
echo " HostName $HOST" | sudo tee -a /home/bigbluebutton/.ssh/config
echo " User bigbluebutton" | sudo tee -a /home/bigbluebutton/.ssh/config
+echo " Port 22" | sudo tee -a /home/bigbluebutton/.ssh/config
echo " IdentityFile /home/bigbluebutton/.ssh/id_rsa" | sudo tee -a /home/bigbluebutton/.ssh/config
+chown bigbluebutton.bigbluebutton /home/bigbluebutton/.ssh/config
echo 'Add recording transfer scripts...'
POST_PUBLISH_DIR=/usr/local/bigbluebutton/core/scripts/post_publish
@@ -126,7 +128,9 @@ if [ -f "$CORE_SCRIPTS_DIR/scalelite.yml" ]; then
fi
wget https://raw.githubusercontent.com/blindsidenetworks/scalelite/master/bigbluebutton/scalelite.yml -P $CORE_SCRIPTS_DIR
sed -e '/spool_dir/ s/^#*/#/' -i $CORE_SCRIPTS_DIR/scalelite.yml
-echo "spool_dir: bigbluebutton@scalelite-spool:/var/bigbluebutton/spool" | tee -a $CORE_SCRIPTS_DIR/scalelite.yml
+sed -e '/extra_rsync_opts/ s/^#*/#/' -i $CORE_SCRIPTS_DIR/scalelite.yml
+echo 'spool_dir: bigbluebutton@scalelite-spool:/var/bigbluebutton/spool' | tee -a $CORE_SCRIPTS_DIR/scalelite.yml
+echo 'extra_rsync_opts: ["-av", "--no-owner", "--chmod=F664"]' | tee -a $CORE_SCRIPTS_DIR/scalelite.yml
public_key=$(cat /home/bigbluebutton/.ssh/id_rsa.pub)
set +x