Added fix to JIB installer
This commit is contained in:
13
JIB/conf.sh
13
JIB/conf.sh
@@ -13,8 +13,8 @@ echo "y" | ufw enable > $OUTPUT 2>&1
|
||||
#install ChromeDriver
|
||||
curl --retry 7 --retry-delay 5 -s http://chromedriver.storage.googleapis.com/"$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)"/chromedriver_linux64.zip -o /tmp/chromedriver.zip
|
||||
unzip /tmp/chromedriver.zip -d /tmp > $OUTPUT 2>&1
|
||||
sudo mv -f /tmp/chromedriver /usr/local/bin/chromedriver > $OUTPUT 2>&1
|
||||
sudo chmod 0755 /usr/local/bin/chromedriver > $OUTPUT 2>&1
|
||||
mv -f /tmp/chromedriver /usr/local/bin/chromedriver > $OUTPUT 2>&1
|
||||
chmod 0755 /usr/local/bin/chromedriver > $OUTPUT 2>&1
|
||||
|
||||
#config chrome
|
||||
mkdir -p /etc/opt/chrome/policies/managed > $OUTPUT 2>&1
|
||||
@@ -25,14 +25,17 @@ echo "snd_aloop" >> /etc/modules > $OUTPUT 2>&1
|
||||
modprobe snd_aloop > $OUTPUT 2>&1
|
||||
|
||||
##config dns
|
||||
mv /etc/resolve.conf /etc/resolve.conf.bck > $OUTPUT 2>&1
|
||||
echo "nameserver $intip" > /etc/resolve.conf
|
||||
mv resolv.conf resolv.conf.bck > $OUTPUT 2>&1
|
||||
echo "nameserver $intip" > resolv.conf
|
||||
|
||||
#config jibri
|
||||
systemctl stop jibri
|
||||
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/conf/config.json -o /etc/jitsi/jibri/config.json
|
||||
sed -i -e 's/DOMAINname/'$domain'/g' -e 's/JIBRIname/'$jibinstid'/g' -e 's/RECsecret/'$jibrsec'/g' -e 's/JIBRIsecret/'$jibsec'/g' /etc/jitsi/jibri/config.json
|
||||
usermod -aG adm,audio,video,plugdev jibri > $OUTPUT 2>&1
|
||||
mkdir /recordings > $OUTPUT 2>&1
|
||||
chown jibri:jibri /recordings > $OUTPUT 2>&1
|
||||
|
||||
sed -i "s=exec java=exec /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java=g" /opt/jitsi/jibri/launch.sh
|
||||
systemctl enable jibri > $OUTPUT 2>&1
|
||||
systemctl start jibri > $OUTPUT 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user