Ver código fonte

Fix tar1090 installation.

pull/49/head
Luigi Cruz 3 anos atrás
pai
commit
f895f85f16
2 arquivos alterados com 24 adições e 27 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar