Skip to content

Commit

Permalink
Clean up the library cache so any dangling items are cleared & RTL-SD…
Browse files Browse the repository at this point in the history
…R changes since it is not a APT installed package (#1020)

* Clean up the library cache so any dangling items are cleared

* RTL-SDR changes since it is not a APT installed package
  • Loading branch information
creas002 authored Jul 23, 2024
1 parent 05c3d3c commit 916ce30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/tools/caution_uninstall_rn2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
start=$(date +%s)

UNINSTALL_LOG=/tmp/uninstall.log
PACKAGES_BULLSEYE="satdump wxtoimg nginx predict rtl-sdr php7.4-intl php8.0-sqlite3 php8.0-mbstring php8.0-fpm"
PACKAGES_BOOKWORM="satdump wxtoimg nginx predict rtl-sdr php8.2-intl php8.2-sqlite3 php8.2-mbstring php8.2-fpm"
PACKAGES_BULLSEYE="satdump wxtoimg nginx predict php7.4-intl php8.0-sqlite3 php8.0-mbstring php8.0-fpm"
PACKAGES_BOOKWORM="satdump wxtoimg nginx predict php8.2-intl php8.2-sqlite3 php8.2-mbstring php8.2-fpm"
PATHS="/srv/audio /srv/videos /srv/images $HOME/.config/composer $HOME/.config/gmic $HOME/.config/matplotlib $HOME/.config/meteordemod $HOME/.config/composer $HOME/.config/satdump $HOME/raspberry-noaa-v2 $HOME/.predict $HOME/.noaa-v2.conf $HOME/.wxtoimglic $HOME/.wxtoimgrc /usr/local/bin/rtl_* /var/log/raspberry-noaa-v2 /etc/sudoers.d/020_www-data-atrm-nopasswd /var/www/wx-new /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default /tmp/rtl-sdr"
SERVICES="phpsessionclean.service phpsessionclean.timer nginx.service"
OS=$(grep -E "^deb http://raspbian.raspberry.org/raspbian|^deb http://raspbian.raspberrypi.org/raspbian|^deb http://deb.debian.org/debian|^deb https://deb.debian.org/debian" /etc/apt/sources.list /etc/apt/sources.list.d/official-package-repositories.list 2> /dev/null | head -n 1 | awk '{print $3}')
Expand Down Expand Up @@ -166,6 +166,8 @@ else
loggit "FAIL" "RN2 cronjobs were NOT removed"
fi

# Let's make sure to clean up the library cache so any dangling items are cleared
sudo ldconfig

loggit "INFO" ""
loggit "INFO" "Log of results --> ${UNINSTALL_LOG}"
Expand Down

0 comments on commit 916ce30

Please sign in to comment.