mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
privacy: Set vendor as FreedomBox for dpkg and popularity-contest
- This changes sets the default dpkg vendor as FreedomBox. 'Debian' is still the parent of the vendor. - This results in popcon setting the Vendor as FreedomBox. This allows measuring the popular of FreedomBox distribution itself as against other Debian derivatives in the section 'Statistics per distributions reporting to Debian' of https://popcon.debian.org Tests: - Run `sudo ./setup.py install` and freedombox service. Privacy app will be setup for the first time. In /etc/dpkg/origins/ the file default is a symlink pointing to /etc/dpkg/origins/fredombox. Running 'sudo sh +x /etc/cron.daily/popularity' runs successfully. Remove files /var/lib/popularity-contest/lastsub /var/log/popularity-contest* if necessary. The file /etc/log/popularity-contest shows VENDOR:FreedomBox in the first line. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
7e2ebcb743
commit
236ad3771a
4
plinth/modules/privacy/data/etc/dpkg/origins/freedombox
Normal file
4
plinth/modules/privacy/data/etc/dpkg/origins/freedombox
Normal file
@ -0,0 +1,4 @@
|
||||
Vendor: FreedomBox
|
||||
Vendor-URL: https://freedombox.org/
|
||||
Bugs: https://salsa.debian.org/freedombox-team/freedombox/-/issues/new
|
||||
Parent: Debian
|
||||
@ -21,6 +21,13 @@ def setup():
|
||||
aug.set('ENCRYPT', 'yes')
|
||||
aug.save()
|
||||
|
||||
# Set the vendor to 'FreedomBox' with 'Debian' as parent
|
||||
default_link = pathlib.Path('/etc/dpkg/origins/default')
|
||||
debian_link = pathlib.Path('/etc/dpkg/origins/debian')
|
||||
if default_link.is_symlink() and default_link.resolve() == debian_link:
|
||||
default_link.unlink()
|
||||
default_link.symlink_to('freedombox')
|
||||
|
||||
|
||||
@privileged
|
||||
def set_configuration(enable_popcon: Optional[bool] = None):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user