diff --git a/update.sh b/update.sh index 6fc1b0d..7b1073c 100644 --- a/update.sh +++ b/update.sh @@ -451,7 +451,11 @@ then mkdir -p /var/log/FreeDMR fi chmod +x /opt/FreeDMR/install.sh +apt-get install python3-venv -y +python3 -m venv env +source env/bin/activate ./install.sh +deactivate # if [ "$(cat /opt/FreeDMR/FreeDMR-SAMPLE.cfg | grep 'TOPO_FILE')" != "" ]; then sudo sed -i 's/TOPO_FILE:.*/TOPO_FILE: topography.json/' /opt/FreeDMR/FreeDMR-SAMPLE.cfg @@ -635,7 +639,6 @@ cd /opt sudo git clone https://github.com/yuvelq/FDMR-Monitor.git cd FDMR-Monitor sudo git checkout Self_Service -sed -i "s/mysqlclient//g" /opt/FDMR-Monitor/requirements.txt sudo chmod +x install.sh chmod 777 /opt/FDMR-Monitor/data @@ -673,7 +676,11 @@ sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/html/*.* sudo sed -i "s/www\/html/www\/fdmr/g" /opt/FDMR-Monitor/sysinfo/*.* # Install the required support programs sudo -H pip3 install --upgrade pip +apt-get install python3-venv -y +python3 -m venv env +source env/bin/activate pip3 install -r requirements.txt +deactivate pip install pyopenssl --upgrade cd /opt/FDMR-Monitor/ cp /opt/FDMR-Monitor/fdmr-mon_SAMPLE.cfg /opt/FDMR-Monitor/fdmr-mon.cfg @@ -1188,8 +1195,11 @@ sudo git clone https://github.com/CS8ABG/FDMR-Monitor.git /opt/FDMR-Monitor2 cd /opt/FDMR-Monitor2 sudo git checkout Self_Service sudo -H pip3 install --upgrade pip -sed -i "s/mysqlclient//g" /opt/FDMR-Monitor2/requirements.txt +apt-get install python3-venv -y +python3 -m venv env +source env/bin/activate pip3 install -r requirements.txt +deactivate pip install pyopenssl --upgrade chmod 777 /opt/FDMR-Monitor2/data