Browse Source

Fix tar1090 installation.

tags/5.1.0
Luigi Cruz 3 years ago
parent
commit
7522af7c30
2 changed files with 24 additions and 27 deletions
  1. +3
    -27
      stage4/32-pisdr-dump1090/00-run.sh
  2. +21
    -0
      stage4/32-pisdr-dump1090/targets/install_tar1090.sh

+ 3
- 27
stage4/32-pisdr-dump1090/00-run.sh View File

@@ -48,34 +48,10 @@ echo "Package installed!"

cp -n debian/lighttpd/* /etc/lighttpd/conf-available

echo --------------
cd /usr/local/share/adsb-wiki/readsb-install

wget -O tar1090-install.sh https://raw.githubusercontent.com/wiedehopf/tar1090/master/install.sh
bash tar1090-install.sh /run/readsb

if ! systemctl show readsb | grep 'ExecMainStatus=0' -qs; then
echo --------------
echo --------------
journalctl -u readsb | tail -n30
echo --------------
echo --------------
echo "ERROR: readsb service didn't start, if inquiring about the issue please post the above 30 lines of log!"
echo " common issues: SDR not plugged in."
echo " the webinterface will show an error until readsb is running!"
echo --------------
fi

echo --------------

echo "[PiSDR] Disabling services. To enable them, run 'bash enable.sh'."

systemctl disable --now readsb
systemctl disable --now tar1090
systemctl disable --now lighttpd

echo "[PiSDR] Deleting build files to save space."
systemctl disable --now readsb || true
systemctl disable --now tar1090 || true
systemctl disable --now lighttpd || true

rm -fr /usr/local/share/tar1090/git-db
rm -fr /usr/local/share/tar1090/git
EOF

+ 21
- 0
stage4/32-pisdr-dump1090/targets/install_tar1090.sh View File

@@ -0,0 +1,21 @@
#!/bin/bash

cd /usr/local/share/adsb-wiki/readsb-install

wget -O tar1090-install.sh https://raw.githubusercontent.com/wiedehopf/tar1090/master/install.sh
bash tar1090-install.sh /run/readsb

if ! systemctl show readsb | grep 'ExecMainStatus=0' -qs; then
echo --------------
echo --------------
journalctl -u readsb | tail -n30
echo --------------
echo --------------
echo "ERROR: readsb service didn't start, if inquiring about the issue please post the above 30 lines of log!"
echo " common issues: SDR not plugged in."
echo " the webinterface will show an error until readsb is running!"
echo --------------
fi

rm -fr /usr/local/share/tar1090/git-db
rm -fr /usr/local/share/tar1090/git

Loading…
Cancel
Save