mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
It is incorrect to check for backports availability, FreedomBox systems got added buster-backports sources prematurely. This will lead to apt update failures resulting in FreedomBox becoming unable to install new apps. Fix this by removing old sources and adding new sources only after performing (this time correct) backports URL check. Closes: #1496. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
34 lines
709 B
Bash
Executable File
34 lines
709 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
deluser --system --quiet plinth || true
|
|
rm -rf /var/lib/plinth
|
|
|
|
# Remove legacy directory too
|
|
rm -rf /var/log/plinth
|
|
|
|
if [ -e '/etc/apt/sources.list.d/freedombox.list' ]; then
|
|
rm -f /etc/apt/sources.list.d/freedombox.list
|
|
fi
|
|
|
|
if [ -e '/etc/apt/sources.list.d/freedombox2.list' ]; then
|
|
rm -f /etc/apt/sources.list.d/freedombox2.list
|
|
fi
|
|
|
|
if [ -e '/etc/apt/preferences.d/50freedombox.pref' ]; then
|
|
rm -f /etc/apt/preferences.d/50freedombox.pref
|
|
fi
|
|
|
|
if [ -e '/etc/apt/preferences.d/50freedombox2.pref' ]; then
|
|
rm -f /etc/apt/preferences.d/50freedombox2.pref
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|