Skip to content

Commit

Permalink
ADS-B Feeder: improve service integration
Browse files Browse the repository at this point in the history
Don't install the unused update timer - we don't use that as an app.
Remove the adsb-docker service on uninstall.
Don't prune the docker images - that might remove images we don't own.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed Oct 3, 2023
1 parent 98ec4a8 commit b047355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -12015,6 +12015,8 @@ _EOF_
# remove the service that isn't needed for an app install on DietPi and install the rest
G_EXEC cd /tmp/adsb-feeder/src/modules/adsb-feeder/filesystem/root
G_EXEC rm ./usr/lib/systemd/system/adsb-bootstrap.service
G_EXEC rm ./usr/lib/systemd/system/adsb-update.service
G_EXEC rm ./usr/lib/systemd/system/adsb-update.timer
G_EXEC mv ./usr/lib/systemd/system/* /etc/systemd/system/

# determine the version
Expand Down Expand Up @@ -12814,11 +12816,9 @@ If no WireGuard (auto)start is included, but you require it, please do the follo
if To_Uninstall 141 # ADS-B Feeder
then
G_EXEC_NOHALT=1 G_EXEC_OUTPUT=1 G_EXEC /opt/adsb/docker-compose-adsb down
Remove_Service adsb-bootstrap
Remove_Service adsb-docker
Remove_Service adsb-feeder-update
Remove_Service adsb-setup
Remove_Service adsb-update
command -v docker &> /dev/null && G_EXEC docker image prune -a -f
G_EXEC rm -Rf /opt/adsb /mnt/dietpi_userdata/adsb-feeder /opt/adsb-feeder-update
fi

Expand Down

0 comments on commit b047355

Please sign in to comment.