mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
- Merge backports functionality into upgrades module. - No need to enable systemd timer as dh_installsystemd automatically enables this during package installation and upgrade. - Use https:// and deb.debian.org for repository checking. When using Tor for package installations request the URL via Tor. - Make daily checking service more generic for all kind of future apt repository updates. - Force removal of repository file during purge to avoid failures. - Don't add contrib/non-free as backports is intended to be enabled for just the freedombox package and it is free. When the need arises, we can introduce contrib/non-free. This also eliminates an issue that adding these components doesn't work without the usage of tor. - Allow generate apt preferences file to avoid lintian complaining about its presence. Remove on purge. - Add unattended upgrades origin pattern to allow it to upgrade from backports repositories. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
26 lines
455 B
Bash
Executable File
26 lines
455 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/preferences.d/50freedombox.pref' ]; then
|
|
rm -f /etc/apt/preferences.d/50freedombox.pref
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|