moving down 'paho-library' installation to enable it in both virtual & real mode

This commit is contained in:
Shabirmean 2016-05-11 11:25:53 +05:30
parent ee561f91a4
commit ad9e42c3d9

View File

@ -107,14 +107,15 @@ if [ "$mode" = "N" ]; then
sudo python setup.py install sudo python setup.py install
cd .. cd ..
# ----------------------------------------------------- # -----------------------------------------------------
# Install Paho-MQTT-Library for MQTT Communication
git clone https://github.com/eclipse/paho.mqtt.python.git
cd ./paho.mqtt.python
sudo python setup.py install
cd ..
# -----------------------------------------------------
fi fi
# Install Paho-MQTT-Library for MQTT Communication
git clone https://github.com/eclipse/paho.mqtt.python.git
cd ./paho.mqtt.python
sudo python setup.py install
cd ..
# -----------------------------------------------------
chmod +x ./src/RaspberryAgent.py chmod +x ./src/RaspberryAgent.py
sudo python ./src/RaspberryAgent.py -i $input -m $mode sudo python ./src/RaspberryAgent.py -i $input -m $mode