Added check for the kernel and cpu architecture in bbb-conf

This commit is contained in:
Sebastian 2010-07-05 09:16:33 -04:00
parent 19667376b6
commit 96e0164216

View File

@ -558,19 +558,8 @@ if [ $SETUPDEV ]; then
/etc/nginx/sites-available/bigbluebutton
sudo /etc/init.d/nginx restart
if [ -f /var/www/bigbluebutton/client/conf/config.xml ]; then
echo "# Copying /var/www/bigbluebutton/client/conf/config.xml to ${BBBCLIENTHOME}/src/conf/config.xml"
cp /var/www/bigbluebutton/client/conf/config.xml $BBBCLIENTHOME/src/conf/config.xml
else
echo "# Copying ${BBBCLIENTHOME}/resources/config.xml.template to ${BBBCLIENTHOME}/src/conf/config.xml.template"
cp $BBBCLIENTHOME/resources/config.xml.template $BBBCLIENTHOME/src/conf/config.xml.template
echo "# Generating ${BBBCLIENTHOME}/src/conf/config.xml"
cat $BBBCLIENTHOME/src/conf/config.xml.template | sed "s/VERSION/dev/" > $BBBCLIENTHOME/src/conf/config.xml
rm $BBBCLIENTHOME/src/conf/config.xml.template
fi
echo "# Copying ${BBBCLIENTHOME}/resources/dev/join-mock.xml to ${BBBCLIENTHOME}/src/conf/join-mock.xml"
cp $BBBCLIENTHOME/resources/dev/join-mock.xml $BBBCLIENTHOME/src/conf/config.xml
echo "# Copying /var/www/bigbluebutton/client/conf/config.xml to ${BBBCLIENTHOME}/bin/conf/config.xml"
cp /var/www/bigbluebutton/client/conf/config.xml $BBBCLIENTHOME/bin/conf/config.xml
cd $BBBCLIENTHOME
@ -802,6 +791,12 @@ $RED5_DIRECTORY/log/deskshare.log"
if [ $CHECK ]; then
echo "Current Configuration:"
echo "Kernel version: " `uname -r`
if [ `uname -m` == "x86_64" ]; then
echo "The architecture is 64bit."
elif [ `uname -m` == "x86" ]; then
echo "The architecture is 32bit."
fi
IP=$(cat /var/www/bigbluebutton/client/conf/config.xml | sed -n '/porttest /{s/.*host="//;s/".*//;p}')
echo