8067 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
4cfc2fb4f2
tests: functional: Make install script work for Bullseye
- Pip option --break-system-packages is available only from Bookworm.

- Remove --user to that the script works can be used broadly.

Tests:

- On a fresh stable container, running functional tests works. Without the
patch, it fails.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-04-05 08:50:08 -04:00
James Valleroy
2cd693e3e6
HACKING: Force pip to install packages to system environment
See 550f9192ae4e5c4dd486ba08738ecee322929fce.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: pip option --break-system-packages works only from Bookworm]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-04-05 08:50:02 -04:00
nbenedek
a5283771e0
calibre: Remove libraries during uninstallation
Test:
1. Install Calibre, add a few books and libraries
2. Uninstall, then install Calibre
3. The default Library is present and empty

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-04-03 11:04:36 +05:30
Sunil Mohan Adapa
b21d88419c
tests: Don't error during collection if selenium is not installed
This fixes the current pipeline failures.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-04-01 19:52:41 -04:00
James Valleroy
c00e06ef10
Revert "locale: Update translation strings"
This reverts commit bc9f9d8c34c07bdbe3bd695e5a896d6bd55ff505.

Reverting so that translators can continue to work on the content in
debian/bookworm branch during the freeze period.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-27 21:44:45 -04:00
James Valleroy
339095daca
Release v23.7 to experimental
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.7
2023-03-27 20:52:54 -04:00
James Valleroy
d438db4460
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-27 20:50:15 -04:00
James Valleroy
bc9f9d8c34
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-27 20:23:54 -04:00
nbenedek
f88f37c80e
mediawiki: Allow setting site language code
Closes: #2137

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-27 20:14:34 -04:00
Sunil Mohan Adapa
92aff3e63c
matrixsynapse: Add token based registration verification
- Allow setting registration verification to token based registration
verification.

- Configure the server with registration secret. Use the registration secret to
register an admin account for FreedomBox's use. Store the access token provided
during registration for future use.

- Use Admin API and the access token to create a registration verification
token. Show list of all registration tokens on app page.

Tests:

- On a fresh installation, setup succeeds, public registration is disabled.
Enabling public registration sets verification to be disabled by default.
Registration tokens are not shown in status.

- Without the patch, install the app and enable public registration. Apply the
patches. After update registration verification will show as disabled.

- Setting verification method to registration token works.
freedombox-registration-secret.yaml file is created. This file has 0o600
permissions and is owned by matrix-synapse:nogroup.
freedombox-admin-access-token.txt file is created. This file has 0o600
permissions and is owned by root:root. List of registration tokens are shown in
status section. Registration with Element app works with the token listed.

- Disabling registration verification works. Registration tokens are not shown
in status section. Registration with Element app works without verification.

- Disable app. Try to update the verification configuration to use tokens. An
error should be thrown that configuration can't be updated when app is disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-27 17:07:08 -04:00
Veiko Aasa
485107604f
tests: functional: Fix setting first ethernet connection as internal
Tested that all samba tests pass in testing container. Also checked that
connection type texts are not translated, thus safe to use in xpath search.

Fixes #2333.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-26 11:26:28 -04:00
Sunil Mohan Adapa
e048e6814c
container: Increase wait time to accommodate slower architectures
This is for arm64 boards like Raspberry Pi and cross-arch VMs.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-26 10:07:13 -04:00
Sunil Mohan Adapa
fa1711f84f
container: Fix resizing disk image containing multiple partitions
Closes: #2324.

The arm64 image contains two partitions in a GPT partition table. First is the
EFI partition and the second is the root partition. The container script
currently assumes that there will only be one partition in the image file. Fix
this by picking up the partition number of the last partition and resizing that.
GPT partition table also requires relocating the second copy of the partition
table to the end before partition resize can succeed.

Tests:

- Create testing containers in arm64 and amd64 architectures.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-26 10:07:08 -04:00
Veiko Aasa
9c0e339daf
container: Force pip to install packages to system environment
Without the change, pip refuses to install into system environment due to
changes outlined in PEP 668. The following error is thrown: 'error:
externally-managed-environment'.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-26 08:49:39 -04:00
109247019824
42879bbcb1
Translated using Weblate (Bulgarian)
Currently translated at 44.4% (660 of 1486 strings)
2023-03-21 07:38:44 +01:00
109247019824
d7f97a0096
Translated using Weblate (Bulgarian)
Currently translated at 44.2% (658 of 1486 strings)
2023-03-19 07:38:14 +01:00
James Valleroy
0a5d3bd8e7
Release v23.6 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.6
2023-03-13 21:53:11 -04:00
James Valleroy
0df5b2d6e0
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-13 21:52:25 -04:00
James Valleroy
604a1cb2b0
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-13 21:32:47 -04:00
Sunil Mohan Adapa
0dc8bbc865
datetime: Use timedatectl to read current timezone
Closes: #2326.

There are plans to remove /etc/timezone from Debian (Debian bug: #822733). It
has been removed temporarily and that caused failures in FreedomBox. Since we
use systemd-timesyncd and timedatectl, use timedatectl to retrieve the currently
set timezone value. This eliminates the need to read timezone at a lower level.

Tests:

- Getting and setting the timezone works.

- Removing /etc/timezone and /etc/localtime then visiting the Date & Time app
works. After setting the timezone, /etc/localtime file is created as symlink.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-13 21:23:27 -04:00
nbenedek
bf2e53f323
ttrss: fix failing backup
Closes: #2206

Use pg_dumpall instead of pg_dump.

Test I did:
1. Install tt-rss and add a feed
2. Create a backup
3. On a fresh installation restore the backup from file

Signed-off-by: nbenedek <contact@nbenedek.me>
[jvalleroy: Add a comment about the limitation of this approach]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-13 21:19:28 -04:00
nbenedek
e974ac735a
samba: make sure shares are not accesible from the internet
The reason for this patch is explained in issue #789 .
See also: !2250

Signed-off-by: nbenedek <contact@nbenedek.me>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[jvalleroy: Don't enable app when upgrading]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-13 20:09:12 -04:00
Sunil Mohan Adapa
41e9473a0c
/etc/issue: Update message to reflect that all users can login
Closes: #2325.

We have recently started allowing all the users to login to FreedomBox console
instead of just the administrators accounts. Remove the message that only
administrators can login.

Tests:

- Run ./setup.py install and then notice that login message got updated in a
vagrant machine.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-12 10:38:38 -04:00
Sunil Mohan Adapa
550f9192ae
ci: Force pip to install packages to system environment
Without the change, pip refuses to install into system environment due to
changes outlined in PEP 668. The following error is thrown: 'error:
externally-managed-environment'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-12 10:23:31 -04:00
James Valleroy
479c129369
Release v23.5 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.5
2023-02-27 20:33:44 -05:00
James Valleroy
bc1e44f9af
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-27 20:33:11 -05:00
James Valleroy
5ba16d3353
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-27 20:11:47 -05:00
Michael Breidenbach
e4dd678223
Translated using Weblate (Swedish)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-26 19:38:04 +01:00
Veiko Aasa
e9f9d33abc
samba: tests: Fix enable share view test
Closes #2327.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-02-26 19:07:20 +05:30
Besnik Bleta
f0842bfcca
Translated using Weblate (Albanian)
Currently translated at 99.8% (1484 of 1486 strings)
2023-02-25 12:36:36 +01:00
Jiří Podhorecký
f6781e2f4e
Translated using Weblate (Czech)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-20 16:36:26 +01:00
James Valleroy
07fb2be30d
mediawiki: Fix app view error
This was changed by mistake in
89a404fb7d32af1667110480dcaf142c4868fd86.

Tests:

- MediaWiki app page is shown without error.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-02-18 17:37:54 -08:00
109247019824
a2b370e300
Translated using Weblate (Bulgarian)
Currently translated at 42.2% (628 of 1486 strings)
2023-02-16 20:39:09 +01:00
Ihor Hordiichuk
3d85248a17
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:09 +01:00
Burak Yavuz
5647d745c2
Translated using Weblate (Turkish)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:08 +01:00
ikmaak
60ca8f3681
Translated using Weblate (Dutch)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:07 +01:00
gallegonovato
aa0f47e9ee
Translated using Weblate (Spanish)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:07 +01:00
ikmaak
64d9c0d179
Translated using Weblate (German)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:06 +01:00
Dietmar
0e8566f475
Translated using Weblate (German)
Currently translated at 100.0% (1486 of 1486 strings)
2023-02-16 20:39:06 +01:00
James Valleroy
f202c7222e
Release v23.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.4
2023-02-13 21:06:50 -05:00
James Valleroy
766e7aa7b5
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 21:05:44 -05:00
James Valleroy
85ae7792ac
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 20:22:33 -05:00
109247019824
5315693cbc
Translated using Weblate (Bulgarian)
Currently translated at 42.3% (628 of 1484 strings)
2023-02-14 02:20:07 +01:00
James Valleroy
4e624f4307
uninstall: Fix spelling in warning message
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 20:18:17 -05:00
Sunil Mohan Adapa
a31a5a1e97
ejabberd: Add Monal and Siskin for iOS and remove ChatSecure
Closes: #2323.

- Monal is BSD 2-Clause licensed.

- Siskin IM is GPLv3 licensed.

Tests:

- In app install page, clicking on clients shows the two new clients and old
client removed. Clicking on the buttons takes us to correct pages on the iOS app
store.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 20:09:44 -05:00
Sunil Mohan Adapa
7729eec96f
matrixsynapse: Disable verification to fix public registrations
Closes: #2321.

- Without verification configuration being set, if public registrations are
enabled, matrix-synapse server does not start. Fix this by disabling
registration verification.

Tests:

- Without the patch, install matrix and enable public registrations. Matrix
daemon will no longer be running. Apply patches and restart. Matrix app will be
updated. 'enable_registration_without_verification: true' will appear in
/etc/matrix-synapse/conf.d/freedombox-registration.yaml. Server will be running.

- Enabling/disabling the public registration option works. The option will be
added and removed. enable_public_registration is set to true/false.

- Functional tests for matrix-synapse work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 19:36:58 -05:00
Sunil Mohan Adapa
89a404fb7d
matrixsnapse: Minor refactor in getting/setting public registrations
- Consistency with rest of the apps, more robustness and extensibility.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 19:36:58 -05:00
James Valleroy
bb544b0a6d
dynamicdns: Skip uninstall test
Tests:

- test_uninstall is skipped for dynamicdns.

- test_uninstall is passed for bepasty.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2023-02-13 16:11:00 -08:00
Sunil Mohan Adapa
7febdb16e3
vagrant: Hide the vagrant-script directory
- It is just a support script and not part of the main source.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 17:12:42 -05:00
Sunil Mohan Adapa
b013d010a4
vagrant: Drop unnecessary script that deletes sqlite file
We no longer store sqlite3 file the current directory when running --develop
mode. We always store it in /var/lib/plinth/plinth.sqlite3.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 17:12:40 -05:00