Your test for the type of installation "receiver=" can still fail.
if grep -q "^receiver.*dvbt" /etc/fr24feed.ini - will match "receiver=avr-tcp #dvb" which is a valid way to edit the config file. A better idea might be:
. /etc/fr24feed.ini
if [ "$receiver" = dvbt ] ...
Also, you are still setting a directory (/run/dump1090-mutability) to 777 permissions. Not safe. You should only create /run/fr24feed and /run/dump1090-mutability if they're required. In an installation using a stand-alone dump1090 they are not needed.
Changing directory ownership and permissions of the files from one package from the systemd config of another is not a good idea. It can, and has, broken many things.
if grep -q "^receiver.*dvbt" /etc/fr24feed.ini - will match "receiver=avr-tcp #dvb" which is a valid way to edit the config file. A better idea might be:
. /etc/fr24feed.ini
if [ "$receiver" = dvbt ] ...
Also, you are still setting a directory (/run/dump1090-mutability) to 777 permissions. Not safe. You should only create /run/fr24feed and /run/dump1090-mutability if they're required. In an installation using a stand-alone dump1090 they are not needed.
Changing directory ownership and permissions of the files from one package from the systemd config of another is not a good idea. It can, and has, broken many things.
Comment