Fixed issue rtegarding wrong dns file
This commit is contained in:
@@ -21,12 +21,12 @@ mkdir -p /etc/opt/chrome/policies/managed > $OUTPUT 2>&1
|
|||||||
echo '{ "CommandLineFlagSecurityWarningsEnabled": false }' >>/etc/opt/chrome/policies/managed/managed_policies.json
|
echo '{ "CommandLineFlagSecurityWarningsEnabled": false }' >>/etc/opt/chrome/policies/managed/managed_policies.json
|
||||||
|
|
||||||
#config alsa
|
#config alsa
|
||||||
echo "snd_aloop" >> /etc/modules > $OUTPUT 2>&1
|
echo "snd_aloop" >> /etc/modules
|
||||||
modprobe snd_aloop > $OUTPUT 2>&1
|
modprobe snd_aloop > $OUTPUT 2>&1
|
||||||
|
|
||||||
##config dns
|
##config dns
|
||||||
mv resolv.conf resolv.conf.bck > $OUTPUT 2>&1
|
mv /etc/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1
|
||||||
echo "nameserver $intip" > resolv.conf
|
echo "nameserver $intip" > /etc/resolv.conf
|
||||||
|
|
||||||
#config jibri
|
#config jibri
|
||||||
systemctl stop jibri
|
systemctl stop jibri
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ echo "y" | ufw enable > $OUTPUT 2>&1
|
|||||||
if [ "$extcon" = "1" ] ; then
|
if [ "$extcon" = "1" ] ; then
|
||||||
systemctl stop dnsmasq
|
systemctl stop dnsmasq
|
||||||
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/conf/dnsmasq.conf -o /etc/dnsmasq.d/main.conf
|
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/conf/dnsmasq.conf -o /etc/dnsmasq.d/main.conf
|
||||||
sed -i -e 's/DOMAINname/'$domain'/g' -e 's/HOSTname/'${domain%%.*}'/g' -e 's/INTif/'$innetworkif'/g' -e 's/INTip/''/g' /etc/dnsmasq.d/main.conf
|
sed -i -e 's/DOMAINname/'$domain'/g' -e 's/HOSTname/'${domain%%.*}'/g' -e 's/INTif/'$innetworkif'/g' -e 's/INTip/'$intip'/g' /etc/dnsmasq.d/main.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -50,8 +50,8 @@ echo "org.jitsi.jicofo.jibri.BREWERY=JibriBrewery@internal.auth.$domain" >>/etc/
|
|||||||
echo "org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90" >>/etc/jitsi/jicofo/sip-communicator.properties
|
echo "org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90" >>/etc/jitsi/jicofo/sip-communicator.properties
|
||||||
|
|
||||||
if [ "$extcon" = "1" ] ; then
|
if [ "$extcon" = "1" ] ; then
|
||||||
echo 'sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: true,' /etc/jitsi/meet/"$domain"-config.js' > /opt/EnableJitsiRecordButton.sh
|
echo "sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: true,' /etc/jitsi/meet/"$domain"-config.js" > /opt/EnableJitsiRecordButton.sh
|
||||||
echo 'sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: false,' /etc/jitsi/meet/"$domain"-config.js' > /opt/DisableJitsiRecordButton.sh
|
echo "sed -i -e '/fileRecordingsEnabled/c\fileRecordingsEnabled: false,' /etc/jitsi/meet/"$domain"-config.js" > /opt/DisableJitsiRecordButton.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#start services
|
#start services
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ ufw allow 10000/udp > $OUTPUT 2>&1
|
|||||||
echo "y" | ufw enable > $OUTPUT 2>&1
|
echo "y" | ufw enable > $OUTPUT 2>&1
|
||||||
|
|
||||||
##config dns
|
##config dns
|
||||||
mv /etc/resolve.conf /etc/resolve.conf.bck
|
mv /etc/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1
|
||||||
echo "nameserver $intip" > /etc/resolve.conf
|
echo "nameserver $intip" > /etc/resolv.conf
|
||||||
|
|
||||||
##config jitsi
|
##config jitsi
|
||||||
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1
|
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user