mirror of https://github.com/hp3icc/D-APRS.git
Update emq-daprs.sh
This commit is contained in:
parent
bb2febb659
commit
80b20c25c1
12
emq-daprs.sh
12
emq-daprs.sh
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
apps=("git" "python3" "python3-pip" "sudo")
|
apps=("git" "python3" "python3-pip" "sudo" "pkg-config" "python3-venv")
|
||||||
|
|
||||||
for app in "${apps[@]}"
|
for app in "${apps[@]}"
|
||||||
do
|
do
|
||||||
|
|
@ -21,7 +21,15 @@ else
|
||||||
echo "dir not found"
|
echo "dir not found"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
#############
|
||||||
|
apt-get install python3-venv -y
|
||||||
|
python3 -m venv env0
|
||||||
|
source env0/bin/activate
|
||||||
|
pip3 install --upgrade pip
|
||||||
|
pip install pyopenssl --upgrade
|
||||||
|
deactivate
|
||||||
|
|
||||||
|
##################
|
||||||
cd /home/
|
cd /home/
|
||||||
sudo cat > /home/requirements.txt <<- "EOF"
|
sudo cat > /home/requirements.txt <<- "EOF"
|
||||||
bitstring>=3.1.5
|
bitstring>=3.1.5
|
||||||
|
|
@ -44,7 +52,7 @@ cryptography
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
##
|
##
|
||||||
pip3 install -r requirements.txt
|
sudo pip install -U -r requirements.txt
|
||||||
sudo rm requirements.txt
|
sudo rm requirements.txt
|
||||||
cd /opt/
|
cd /opt/
|
||||||
git clone https://github.com/hp3icc/D-APRS.git
|
git clone https://github.com/hp3icc/D-APRS.git
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue