9892 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
bbc2a2b0de
upgrades: Log messages using python logging framework
- When an action is invoked, it configured to handle console and journal
handlers. Console logger (StreamHandler) flushes after each event. Journal event
is sent immediately after the event. So, we are not losing the immediate flush
advantage by switching to logging framework.

- Since console logging is present (and the output is not captured away), using
journal handler also will double log each event. Remove the journal handler.
Console is where the output of various commands is logged. So, keep that.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
1b89151c38
upgrades: Log apt output to journal during dist upgrade
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
32739bb8b7
upgrades: Simplify dist upgrades checks using exceptions
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
9ddfbc4fed
upgrades: Use systemd service status instead of flag file
- A service with the same name can't be started again.

- Transient service goes away as soon as the process ends. This is like
automatically removing the flag. This ensures that stale file does not cause an
issue.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
e58d3d8465
upgrades: Refactor code to retrieve the new codename
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
69058645ab
upgrades: Perform sources file update more reliably
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
ac5f778ae8
upgrades: Relax list of packages to hold during dist upgrade
Closes: #2493.

Tests:

- For each of the packages in the list, download the Bookworm version and Trixie
version of the packages. See if the files in /etc/ that were modified were also
files we also modify. If so, keep it in the list. Otherwise, remove it from the
list.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
5a15665b41
upgrades: Split the main dist upgrade code
- To make it easier to test and read.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
6b13e0eb7a
upgrades: Refactor code to hold packages
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
20d9f8af8d
upgrades: Use systemd-run to create transient service
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:38 -04:00
Sunil Mohan Adapa
0b807a8ce1
upgrades: Refactor code for disabling Quassel during dist-upgrade
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:37 -04:00
Sunil Mohan Adapa
e97e1fc725
upgrades: Refactor code to disable snapshots
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:37 -04:00
Sunil Mohan Adapa
1d8e406528
upgrades: Drop special handling for searx
Helps: #2493.

- searx will not be part of Trixie.

- This special upgrade code is not required for Bookworm -> Trixie upgrade.

- This code is not be invoked for Bullseye -> Bookworm upgrade as this removal
will not reach Bullseye.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:37 -04:00
Sunil Mohan Adapa
7cef898948
upgrades: Split dist upgrade into a separate module
- For ease of maintenance and testing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 18:20:37 -04:00
Sunil Mohan Adapa
0ff7705577
ui: system: When canceling search stay on current page
Tests:

- On app and system pages, canceling the search using the close button at the
end of the search bar will remove the search tags but will stay on the same
page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-03-10 13:34:43 -07:00
Sunil Mohan Adapa
8198eedf78
ui: Minor change with renaming a variable
Tests:

- In apps and system page, removing the last tag from search bar keeps the same
page but without any filtering.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-03-10 13:13:24 -07:00
Sunil Mohan Adapa
3790e3949e
ui: tags: Redirect to apps or system page appropriately
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 14:25:47 -04:00
Sunil Mohan Adapa
a5ab31c1af
ui: tags: Add tag search/filter for system page
Tests:

- In apps page, notice that all the tags are displayed as expected.

- Inside an app from apps sections, clicking on an tag shows the apps with that
tag filtered.

- Clicking on the search bar shows the list of all tags.

- Clicking on tag from search list adds that tag to the search list.

- Labels are shown properly in the search bar.

- Clicking on label removes it from search.

- Search results are sorted based on the number of matches.

- Clicking on the close button the tags search input removes filtering.

- All the above tests work for systems page with systems app. Sections are shown
even when apps are filtered by tags. Sections without results are not shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 14:25:45 -04:00
Sunil Mohan Adapa
9555697140
ui: tags: Minor refactoring in menu filtering and sorting
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 14:25:42 -04:00
Sunil Mohan Adapa
29d6cb2302
ui: tags: Show tags on all cards pages if present
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-10 14:25:39 -04:00
James Valleroy
9e36f77cc7
Release v25.4.1~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v25.4.1_bpo12+1
2025-03-07 16:45:36 -05:00
James Valleroy
ae2659e1e1 freedombox Debian release 25.4.1
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmfE/RwWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICHY3EADIUHja06H3Y0lWZLo6f0Obvs/J
 0AvREpq5OXl1ujTuCiskBLMOgcAuCNaVqVgx0IfIZ4qjQHwazJKYz3ObdNTMfnnw
 keq3hcGxZi0pmKTw/qaEcgOcGMnpY6BkmfPJsenKTRaGmlUOrIVAxWngthPZK9d9
 /gXewPTguGNQdg6p/PfhTL1ukNyTqz8Z2AHjVfGbCNS7Opf3QJjmi3EBX0PauM5I
 +I1zXjTzuzFNh6PClAhs3A2b/RLUqFNeR+FQ30GlqEgnPMKXT/bZqC+TO1QdyZQq
 FG2vjODmNWYWsZrB4nWnsyg5wSCmdHV0kzdvNo2VClueky/KGkyTylM9EkzrltKI
 dKl0XMCeJO4UmbWmo8b9hpzIvr+/zd+v65p41a0K3eT2kylwgiDDFgquieOlJfNl
 4URHEF+JWL7c0PYeGQ1Rn6zyeumqAz6esgEK/CYWNLHcUBMYVOdzhUjkbnY6b6HB
 uogjoqyyb2WXXSnnmFeGxjKfeBgKl0adxx5hSULdQxUwnmxvMhW8R+ccFZG5hM05
 vyexyXNyoh4dHqgTfTJDEOqpS+FpBw5WucYS2yXzKys/lOCz/CqDjWYePP/Hkb65
 OqQ2WoEADs3WQvGdIPxyHvoOa3YB1jqvtwGz5DFWTQlwk+64UhUPUPYpbbOWJ5UF
 qT0smYKmoz5geGcEXg==
 =80Uq
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmfLaN0WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICOZBD/9g9QUaIfAgw5GzbT5YortJDGTz
 q9nvX1TTwp/ZP9W9HO+oyQnUbkCVWcwzlzP3n+gthj/9dUvCfEjuAuGK8bOaRbK8
 zyyLrdp38Zv5zQ1bt7sL1i+HPBkLVSAhEonwjzCGdzw31sVEW+sw69DGAYkIIOvQ
 rB0EjAoWP/sTBAxLzxJpPhFAmUMC7xcjzUE95tfwGo5Mhd2E+i/Dsu1P/31/yAWr
 BjNjQzzZ3Vvf45t7MMVLr+DHoeijBh6UN64Eu/5z3HL1ZE1OcJRocInYqvevjOxo
 M8JZV5b1MVikCJuFgzJfcbxbtiLWJ/PNwFvlIHswzM1km5Dl5DSEO8Mciq3CHOeu
 dhj74y/HWMszNcQLUsbLqpJXIItASr08KjazdlFqbtxFzaMsC9sUpsOcNpOiqigv
 CQRF7fadX/JRKjAYTiDBIri/GPbaPocbID3Wnr6m7Ob9iSnRX3Bs28SvRLSHnqcd
 7T3erSuESN+czH9YeL5ONGgfZEFvCs/G+nzJ3l6puRphgM5Hq3BHqgInALJ8yhJW
 aGFyHY8up49Gc5G7nvNP8FW6R7PffNL6Pc3IZMEFP0019UB7Ue5omoYmZr2NsS1X
 TYM7jUdWV3weGqZdSDGZSUcpPUBUVbVZV3PDOw1Vo3HleCO1Z/dRWQPr7rQOpZcM
 b+bFY2lwBkTn96u+3A==
 =Wi7N
 -----END PGP SIGNATURE-----

Merge tag 'v25.4.1' into debian/bookworm-backports

freedombox Debian release 25.4.1

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-07 16:45:00 -05:00
Sunil Mohan Adapa
d629295110
sogo: Fix a typo in tags
Thanks to user 'fefekrzr' for pointing it out.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-03-03 12:41:40 -08:00
James Valleroy
45509357a4
Release v25.4.1
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v25.4.1
2025-03-02 13:12:35 -05:00
James Valleroy
231d2e2cbc
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-02 13:11:46 -05:00
James Valleroy
506ed65e9f
debian: Move e2fsprogs to Recommends
Temporary workaround for piuparts bug #1010967.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-03-02 11:55:25 -05:00
Jiří Podhorecký
483f1c3b7e
Translated using Weblate (Czech)
Currently translated at 100.0% (1827 of 1827 strings)
2025-02-27 06:06:52 +01:00
Dietmar
762dbdad84
Translated using Weblate (German)
Currently translated at 98.3% (1797 of 1827 strings)
2025-02-27 06:06:52 +01:00
109247019824
588c7847a9
Translated using Weblate (Bulgarian)
Currently translated at 56.0% (1024 of 1827 strings)
2025-02-25 22:04:29 +01:00
109247019824
dec3d3bf9e
Translated using Weblate (Bulgarian)
Currently translated at 55.9% (1023 of 1827 strings)
2025-02-25 17:07:36 +01:00
109247019824
7023d6f6b3
Translated using Weblate (Bulgarian)
Currently translated at 55.9% (1022 of 1827 strings)
2025-02-25 12:56:52 +01:00
Besnik Bleta
bd292df6f1
Translated using Weblate (Albanian)
Currently translated at 99.5% (1819 of 1827 strings)
2025-02-25 10:20:08 +01:00
109247019824
e50d250749
Translated using Weblate (Bulgarian)
Currently translated at 55.5% (1015 of 1827 strings)
2025-02-25 10:20:08 +01:00
大王叫我来巡山
28706ea161
Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 62.6% (1145 of 1827 strings)
2025-02-25 10:20:08 +01:00
109247019824
d5303506ff
Translated using Weblate (Bulgarian)
Currently translated at 55.1% (1008 of 1827 strings)
2025-02-25 07:15:40 +01:00
Burak Yavuz
281ee94350
Translated using Weblate (Turkish)
Currently translated at 100.0% (1827 of 1827 strings)
2025-02-25 07:15:40 +01:00
James Valleroy
8667efafc3
Release v25.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v25.4
2025-02-24 20:46:56 -05:00
James Valleroy
320e57c42b
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-24 20:46:23 -05:00
James Valleroy
1241c329f9
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-24 20:13:47 -05:00
Sunil Mohan Adapa
d411718fb1
dynamicdns: Handle addition of duplicate domains
Tests:

- Adding a new domain works. Adding a new domain with old name results in error
message.

- Editing a old domain works. Updating the domain name works. Updating
configuration parameters without domain name change works.

- Adding a domain with capital letters results in domain with lower cased
letters.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-24 17:30:46 -05:00
Sunil Mohan Adapa
84bf20e1b8
names: Handle addition of duplicate static domains
Tests:

- Adding an new unique domain works.

- Adding an existing domain results in an error.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-24 17:30:42 -05:00
James Valleroy
5544eff707
upgrades: Drop unattended-upgrade call from dist-upgrade
unattended-upgrade will take a very long time to run, and won't be able
to upgrade most of the packages. There is not much benefit to running it
here.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-02-23 12:53:19 -08:00
James Valleroy
d0e25e5239
upgrades: Inhibit shutdown during dist-upgrade
Tests:

- Start a dist-upgrade from stable to testing. Dist upgrade is completed
  as expected. "The system will reboot" message appears only after
  freedombox-dist-upgrade.service has completed.

Helps: #2090

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-02-23 12:53:10 -08:00
James Valleroy
674da2b9c8
container: Fix spelling of 'destroy'
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2025-02-23 12:47:42 -08:00
sai
cdff413307
Translated using Weblate (Telugu)
Currently translated at 77.0% (1400 of 1816 strings)
2025-02-22 10:04:25 +00:00
James Valleroy
36238323ad
Release v25.3.1~bpo12+1 to bookworm-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v25.3.1_bpo12+1
2025-02-18 08:32:45 -05:00
James Valleroy
e5a3d8c91e freedombox Debian release 25.3.1
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmexJlMWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICIFYEACtRxF+0q5SgsZ11qrs4GYjYLXY
 IFNWpsbIthjbrhcBaHMcsBwxVKBccah1X/8tPVHeSvcE+kzIxDE1126i/r6Jl1Lh
 7uc9QTwo6wtSl0wPEvk5Uop0Yn/P08HJHmumpFgA9/Q5zLZPuM7hx8fnO+RKFJ8g
 r8wJPWa69yzLEJ0k1xUAQPG89PxUGr2L9QMfahRkvOb1Kq/7fLxTR00jDp7XmRi6
 xVFLZbem3cLpu0pMOxMUu/M7RVTvWnDeQz2gSm3SEycaaMz9OSWB1zNgy6nHxcZn
 uvD8Qxcb4AVRMoC9SeSSJP/Z1COkd8r2SrGvJp4eXkjumPqBWwcyNixh9hCEOr63
 k9lLf6lY8Q8llBm9693f2FSpYAHOplyAg5TVmmWtRSvDEU7jP/HGj4XVor7nu+jj
 YyDeeXekX0RJID1FaUa5rPQMxUjieJxBkdNDlGqlBtraCwpTO1lbOBFUbW1X48Oc
 Qa9xaYcppKewPrbgNPqiUdmJR2T1DZZ/fq212yvhIn9XW1qZ53DRwAyfulCeFNo1
 7pguleAqt0dVQx71nioVOzzFoeFvxcYKaLtKwBAVHtRg9AyKgaqtCq+z+GvHdbe/
 /tOVPB1cqD2rzlq3VnKRo5iqSaZQcK3iuObkdsRARkgGBOGxYGhGiL+ooCpl6Mg3
 Zmj5B2+xKqrzY3pqKQ==
 =+eVH
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAme0i9sWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICGPxD/47xGPCbl3GGgCXhyLEhsWGd4x8
 3KF8X6sSDitp6IrzzgLelSNxevTc5zWuRGLoQZ8AxZJJitPAJugLzMjFmLIqWym4
 5sP/BtAAXc0UoBw765+0InQZ/tCeeo46c3lfP+ezIm8hcSXDPlttvDzFV/rfP02K
 LpIVLw5gXG8h8oNosok6WIXJa/TthkCw7pDHoSMr/KRGzhCguVVYDSqtIJoVbV0C
 j3EG8P3qsh3UPYMBtxmURwJGOvD9v/Mg+UB3rhNbzJ1LwKwGoPCbR7aEmLTF8slJ
 Ihkhl/35EaICB2sRPimpuqi2E0qkqTcdigHo7q3OLvjehCIHIhPyOieoeMWEtR+6
 vi1jjDEuNHvZLvAIVCbvbqZeTYd9CimSSF7S94MyDDXrf/xBnHbeYKb7B29xMYg3
 dQyKTK0mxBAxfFeaSeGdpP7FI9bs4QZ7m4gQYGG4EkBHop5/1l45UDFRJuOhgCJ/
 bmcqW9JXEazhHMOqJ7EqnNcu8hi6iIGAOW1TGdMZbeDM9Cj+H26nwYN8ahnh3u9m
 iabpwuNNA8B34jh3Wm4QMIa98mGtNd6asmy11B1u/VUohbf4POyOEW0BwPeSLdre
 dQyG0MtsQD9g0vtks18j+2TqHlNW1tFB33IwVwYlm3n6JAIK5DM2bQu6cgpRD/V0
 LAKp1POz/Pe2N6/79w==
 =t9aP
 -----END PGP SIGNATURE-----

Merge tag 'v25.3.1' into debian/bookworm-backports

freedombox Debian release 25.3.1

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-18 08:32:09 -05:00
James Valleroy
c67b1164df
matrixsynapse: tests: Fix adding domain
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-16 11:16:27 -05:00
Sunil Mohan Adapa
85a694f20f
names: Retrieve the most important domain in a more generic way
- The get_domain_name() has some problem. It returns only static domain names
but not a dynamic domain name. It may not always return the same domain when
multiple static domains are configured. It may return return an empty string.

Tests:

- JSXC page shows the alphabetically first static domain. If no static domain is
configured, first dynamic domain is shown, next pagekite domain, next pagekite
domain, next tor onion domain, and finally .local domain.

- Downloading profile from OpenVPN will set the first domain in it.

- When ejabberd is installed, the first domain is configured by default.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-16 10:45:05 -05:00
Sunil Mohan Adapa
eeeec6710f
pyproject: Ignore missing types for numpy (needed by pytest)
- Otherwise, on Debian stable, running make check-type results in following
error:

/usr/lib/python3/dist-packages/_pytest/python_api.py:24: error: Cannot find
implementation or library stub for module named "numpy"  [import]

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2025-02-16 10:45:03 -05:00