Skip to content

Commit ae84176

Browse files
authored
Update wingbits_installer.sh
1 parent 197083f commit ae84176

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

wingbits_installer.sh

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,8 @@ echo "------------------"
109109

110110
SYM=/usr/share/graphs1090/data-symlink
111111
mkdir -p $SYM
112-
if [ -f /run/dump1090-fa/stats.json ]; then
113-
ln -snf /run/dump1090-fa $SYM/data
114-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
115-
elif [ -f /run/readsb/stats.json ]; then
116-
ln -snf /run/readsb $SYM/data
117-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
118-
elif [ -f /run/adsbexchange-feed/stats.json ]; then
119-
ln -snf /run/adsbexchange-feed $SYM/data
120-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
121-
elif [ -f /run/dump1090/stats.json ]; then
122-
ln -snf /run/dump1090 $SYM/data
123-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
124-
elif [ -f /run/dump1090-mutability/stats.json ]; then
125-
ln -snf /run/dump1090-mutability $SYM/data
126-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
127-
else
128-
ln -snf /run/readsb $SYM/data
129-
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
130-
fi
112+
ln -snf /run/readsb $SYM/data
113+
sed -i -e 's?URL .*?URL "file:///usr/share/graphs1090/data-symlink"?' /etc/collectd/collectd.conf
131114

132115
echo "------------------"
133116
echo "TEST 4"
@@ -160,19 +143,6 @@ if ! systemctl status collectd &>/dev/null; then
160143
apt-get install --no-install-suggests --no-install-recommends -y 'libpython3.8' || \
161144
apt-get install --no-install-suggests --no-install-recommends -y 'libpython3.7' || true
162145

163-
systemctl restart collectd || true
164-
if ! systemctl status collectd &>/dev/null; then
165-
echo --------------
166-
echo "Showing the log for collectd using this command: journalctl --no-pager -u collectd | tail -n40"
167-
echo --------------
168-
journalctl --no-pager -u collectd | tail -n40
169-
echo --------------
170-
echo "collectd still isn't working, you can try and rerun the install script at some other time."
171-
echo "Or report this issue with the full 40 lines above."
172-
echo --------------
173-
fi
174-
fi
175-
176146
echo "------------------"
177147
echo "TEST 6"
178148
echo "------------------"

0 commit comments

Comments
 (0)