8130 Commits

Author SHA1 Message Date
James Valleroy
6bfefdd27e freedombox Debian release 23.6
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmQP3C4ACgkQd8DHXntl
 CAjrRQ//ZC6MI99tEHtDvYmvrd0QiiDH24+bTMSLojXkcj9p/ignKRcsW2G0a8jS
 jc0aEADPTOBpGMBr2lMCdXeANLnJH5hyO/qp9nx5xWD6Wmml8pfj1MWVFVMJLCSj
 FYGYtDem4uwHtcex0zS4Fpp+ezqIjFyG+tXSzHLpE0uMa+Tkwe5SB+zcET5qUCAM
 eT4ftul6bYwdz7ARQNEA9N1Qb+oE+q9EkBRguW6i33B2D2SPj/mCapOu7FqN1hfi
 rQnG2dETAgNRIhwpb3bGcblQCrfkrU6asaI0r8Y7lENPoxDQ8+hrZU0qVMoXt0hZ
 NOEupZI05sIs5qp37UUxXk9keh5OhgEFUB7FPGGVEqS3/cCpzMrriqJYrbIZtfhh
 ZRYpUi8du/WGZDmMU+EvppzZOpRxFl3XCi/zO/YLpmj8SBhKlsVXhugNjAUgI3Lj
 FnRXc4r57lnUvyTlCRomRiOhspBcmRW4Fmip9wffivDkLdXuhCJIQG8LLySV3tZL
 EBuwCCe57gvnt1OO3CjijzJ/l38TCrWN0n4Uw0cFAgfTd4LnuFUHwBnY2YgqgYBu
 gP/76vMG0Nao5Vctw6SpNSGAdKEttSnlAWhU8wwuPmz1tLgzrUFy3Wjf4VDuRKwW
 8nfgWjApgEEbRI4wY6RobO4Op0TezNGY1+nnCr8OU0woYEMVSos=
 =rKrr
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmQrWFIACgkQd8DHXntl
 CAhYnA//TxlkxXaq+cgHEgMmXmJaquw85N3lQxzC92MCIet0mP07GsV41l1p2b5r
 IBqhBO1jOJ3ZFS1UHlrnfwgzCk+uBlMTAsauMgW7yrLcxvfJwKH3Q5VpWxVVw6tS
 Y8Yb2hBPVntalb+jWKhIdsaYQXGiADnPg+b1aeWkfWnwOV/BsxtpwnD8vghMdBRu
 ei6AK2P+cD+4B9L7nGQ9LvTP4xitL9RPLDi0hw1WutoZ/vNlSvBMZqClHU8VFTAh
 yteyNUeWy/SOlBYt4Kwrbo4VDgmH32f7KZpH3GPZC8uS7yuhmBS8ytLZDDchyW9A
 Bs+uGzS6FqsiHtvFUfh5TmX1FnCP2tlwfYZ4mcjrpKtJ1THKMYxm3xQ4+mz6CwOt
 VYj+ey9oRGq/8BhSLMWA7+UkR8PUwnGoGKAtKd3+bVy9acqKS1/ip1JrFGkY4R50
 rr4y/AniZZDAGCM5mf7VJDSBeaQGUZ4ON/FynLT8UQeUg3wUL4ay/3OdL0m5kObI
 c4vWcqtsyR1II40ZppZFhtVHVfdyb2yEM+UOMs3bPFLH8G0ruoAb/17itxzQMroq
 EwADBqusMchevFMNVrnzA2N4+0R/6/5+YISUC6ytWnpdTwvQKTTXyhjOGFW3bJso
 8ul4XUNKvX1xHW6Oh2zr6Egz/+0KP5QhGMOD11y8P5IalKLCPWE=
 =cRO0
 -----END PGP SIGNATURE-----

Merge tag 'v23.6' into debian/bullseye-backports

freedombox Debian release 23.6

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-04-03 18:50:56 -04: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
626d4b031c
Release v23.5~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.5_bpo11+1
2023-03-10 09:23:38 -05:00
James Valleroy
65778100f2 freedombox Debian release 23.5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmP9aaEACgkQd8DHXntl
 CAgktg//avrh1sZaCYaiTBSnXVmtKeHdAV8XbOr3cpBqVZn1WDc5GDmv9DndGRmM
 Dmis2pM1VbX0cMN6DhXiGFwL6kuTHpAGE7mpHZyPIgxnrz58hurLuNK+xR8gOMdT
 TNAia0hHmEBZlC/hsAgJlB1oKbjk8dEfx/b6r+X1R9ZowjfHPS9cH5wYMxl7NvLu
 rwnUz5lqOky/mJ71tfGs0Z4+0bK3uOcrjt07sFqggzKPKEsC2VA5bW/O9KspeOa8
 iW2sLWa8PY5SGuKP5PCYKK4ZZfiSTgo71x6HMmmPVxTFKiW+DXL73aZ7iUcZqB/B
 wWp9iPhdu05WpKDk2/mkieib2HKgYL12p1pOHCKmKov5Rns0WUcGu9twnk++6bbn
 d4ARtuk2Mb1RBs9vsqlNkruEvjMNU6pwka5wE2rMwZZs5UbOMoISgIKUflTcEAmI
 nyBYVigmO77/BTT8W5pJCTvA3Z9D7Nd/f54v/EOTzdXaCLxwJTht0sqNGXCFf7vP
 8UIL9h0oQ1VZVMKCUIPrzu8DCFYKan+dsYdqTKLLu4VG6cKxD9r9LWrgOCPZCanU
 OTFU5gHlATeSXU7sV2GXZSlJmnx+GpkbrkcSYTDJTFEoCTlfoSnnGIVYpyXyPQUh
 w56roUIl80oNVU0ScfEKO2GlK5zgJZ/ezjEN6Ow3aJcXilsVRpA=
 =Dd/m
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmQLPVIACgkQd8DHXntl
 CAjBgw//d1bp6V/bLzO/VaCSCOIpE8JSMsAhyXLqtDZI8bd2aWm6ZRtBvEkGqgi3
 7H1douSm8zNi+j0vH6szFMd9qRr6ammCaoS2q+zA6uf1+iUo/g+ImKUx9i3GM3I0
 ngSh45Gg7iwJJ1jXV0PEEygnWDlHLxGyEEcNF7h7tjUn3NKVwh+n6DOxH5wXBkQ4
 029fLrB0JrZQvd11ixn+s+bkD4ikWYmjKwVk10neNzLdGnizWqKDDurajT+ARKqY
 saHxa/Cr0t0OwCY/+5ABc57/Z8zxPVCsme4jF96ERluAM7EB2Eyby39Jk9T55olv
 teEF7y5Hzr4blq3MHBt/lPEOyGrpJ7xu+o6yPndt86EDT+yfeib3IYvHXOWrr7z3
 jd/BuNr+/7oMeSQ5Nv3CW68Mbf3tMd83CnPg378hJClE1DTwT+1vK0O7VSR5cgAB
 Kfd06fWLX/jcpSGCud2LB8GUc3dKWvc0skfSxWyiEYpN9HBXGd5AFA8JyROpLvZ6
 fwXUo6WcbE9GQeXAckIvXiB//H0wdEnYDkrrAxs6oAu4ETUmzGFxx2R8d5yxs80F
 a5z6tJumZtDSo6jCc2kJiOqf7Q2EFiYGYG1+ffIoxPaYASnrr/1GQzAOSap4n29r
 JQGcCsvt76ArzqdTcC4qFy9vFbO/BThG98HsLOHwB5F+yKo3Zpg=
 =Yy+m
 -----END PGP SIGNATURE-----

Merge tag 'v23.5' into debian/bullseye-backports

freedombox Debian release 23.5

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-03-10 09:23:13 -05: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
James Valleroy
7c9b481e47
Release v23.4~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v23.4_bpo11+1
2023-02-25 09:44:10 -05:00
James Valleroy
fda3d06c71 freedombox Debian release 23.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmPq+CwACgkQd8DHXntl
 CAhCdQ/9Fz6zxkFe9sSWAAwus+KUgUnBPBmqSlRkBqA5CiSS2R5evH/wT89eYKYp
 nkeMwm+byrfj1xsQ5ULL1lwNNGbRI0WO2uH7aEZ5JIlcG1m6KRqW5W+mPtASXOxp
 9p5unOTQ7S6G72b5N8q8vDdoTa62+aLHfpkIPtwC1h+ES7Xcgf8gor/7QEY1uA0t
 pzXvTNWF3dN2dRWT1Z/i3IRdXut5cIQeHKWIihsXpZZqFE8FOrUIELQHYhoUi+2T
 xX83Fs5guHiBCpo4HFp5IkJLorb/KjfWzg2wKiSQET9CQLL0IPuq8hKQSgBjRt/7
 kbNNW1t+jhf5Uah0nWXy4LXTHod5VHV3QHniMnJ+3zh8TZlJZvVL8JSsQGnmCQbn
 f9TSf6pEtf/HkZdCOtf8OuDtYFFEz4PEQ3eZllcZsBI0RD6EzPONXwA5jpLARlYg
 R7ehV2WZ4EUTNrU8lTH2z0r/4WCYZy6p1cA7yBmf483tj7usotKO9jwPqMvXWUgT
 gXBqfhhpPlQul6VJhEwXms3ze2AMD6+dtkQtYxI4AyE/BkFDLk7el+mn1d+Wkdec
 j890MrYJ7dKFtvdvJxbnhrJbf7O/AW0nT1UVNMUGxuWox+ELtwIssuAqaPtLsbG4
 ZxjdjAkY7kTtJGHdvfghlgReLDril6VOoUsQDcfVSWDZl43SKu8=
 =EkQS
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmP6GvwACgkQd8DHXntl
 CAjV+g//Zz/RPkwNZmcpe+Tvh4XvrptTgq25K4jP0O1DDU+QzquLm/9Cmjz58qLY
 j0sLrxDkH2H/wwLQW1OL2MwSi8ZqofcgBHB2JjtaVS+WKUZkmytSywXHlAfHJEHk
 8A8twozZsulQFgpHk+PFbQgO5a9FudAobz63xayksEpDh+3wz7C/p0Ng9/3BM/5D
 /NduPrfxAMkJPn8UNxbfTv3cEtqLREN/cJd+NkQi1V1Fbgo1jDiDaRxCKQbPPqIB
 ndPIEIKDAAfz8jOCNBzj4S5O9kAafp3Dbgx8OXBkiRRQOX+1VUiNOBK5PO2FObQ8
 ZO/F95/21vWkdPHDCy19F6up6pr4n9W2aU2tZrPmP/oj2hdfMFvFIt4GqiaWxnmG
 oDK9R82e1HiIN26Tiz7DjlTHCEe8WfepcbMaJEuJNh6rII7ntmsmFuRaSoMHkdW9
 VNMK0qMxvtvlIWJHK3fckgXjsCx8IiYdrTYgBWvOWUp1T6OqGa+l8XR3OCsKIcTY
 ZLczdny33RoJnu5En7HykJ7JiHuC2D0x7Cedya5DxtLDFwqHNjoMI/bd3C6krWqR
 TOkF4fJovw25rbzFrzPOPu/x68J/50Fb1Aq75TB7EOFRvbKME0+NSzy9TcKhOqb7
 qIxv+2GViRuPPaXeh9kcYsmkyRr/XXGfWHUP/PXLOluM57xjTes=
 =lETa
 -----END PGP SIGNATURE-----

Merge tag 'v23.4' into debian/bullseye-backports

freedombox Debian release 23.4

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-25 09:28:10 -05:00
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
Sunil Mohan Adapa
24d2401e24
vagrant: Switch to /freedombox before running service with alias
Closes: #2319.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 17:12:37 -05:00
Sunil Mohan Adapa
e80f07250b
vagrant: Mount source in /freedombox instead of /vagrant
For uniformity with the more often used ./container script. Developers may have
to destroy and recreate their vagrant machines for this to take effect.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-13 17:12:35 -05:00
Sunil Mohan Adapa
f1060fbf6b
app: Add backup and restore menu items to toolbar menu
Closes: #2316.

Tests:

- Go to to power app. There is no menu.

- Go to firewall app. There is a menu item but no backup and restore items present.

- Go to bepasty app. There are backup and restore menu items in menu. Clicking
backup items takes us to create backup page with only Bepasty app selected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Fix CSS classes for new menu items]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-12 14:13:24 -05:00
Sunil Mohan Adapa
8f2520b327
backups: Allow selecting a single app from URL when creating backup
Take app_id in a URL fragment and fill that as the default selected app in
create backup form. This URL can be used in apps to create a backup link.

Tests:

- Visit /plinth/sys/backups/create/bepasty/. Only bepasty app will be selected.

- Visit /plinth/sys/backups/create/foo/. No apps are selected.

- Visit /plinth/sys/backups/create/. All apps are selected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-12 13:29:54 -05:00
Juan
3667e934f1
Translated using Weblate (Spanish)
Currently translated at 100.0% (1484 of 1484 strings)
2023-02-11 13:35:37 +01:00
Sunil Mohan Adapa
8dce51fa47
templates: Show better title for 404 page
Closes: #2293.

When running in develop mode, the title already contains 'Page not found'.
Commit 0881dae66583304494e052dfaddb9e3a784d2994 already ensured that functional
tests see this page title and treat it as 404 page. This change ensures that 404
is detected even when not running in develop mode.

Tests:

- Run freedombox as 'sudo --user=plinth ./run' without the --develop option.
Install and disable JSXC. Visit the page /plinth/apps/jsxc/jsxc/. Notice that
the page title is 'Page not found - FreedomBox'.

- Functional tests for JSXC work even when service is running without --develop
option.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-10 10:17:19 -05:00
Sunil Mohan Adapa
0408998d96
config: Drop RuntimeMaxUse=5% for journal logging
Closes: #2313.

systemd-journald does not (never did) accept size values given in percent of
file system size. Only the defaults work with percent values. Hence our addition
of RuntimeMaxUse= as percent value in configuration file did not work.
systemd-journald outputs a warning to dmesg and ignores the value.

We could change the value to fixed size. We would have to choose a value that
works for systems with less memory (such as 1GiB) and that value would serve
poorly for systems with more memory. Instead, leaving the default value of 10%
for RuntimeMaxUse= might be better. Additional configuration of MaxFileSec=6h
and MaxRetentionSec=2day would also ease the burden in most cases for the low
memory devices. Considering that people did not report issues with status
quo (where the value we have set did not work and default size was used) also
suggests that default value will work. Further, /run filesystem itself seems to
be allocated only 10% of available memory.

Tests:

- Without the patch, start a vagrant machine. Notice that dmesg shows the error
mentioned in the issue #2313. Apply patch and restart the service. Setup is run
for config app. The file /etc/systemd/journald.conf.d/50-freedombox.conf will no
longer have the RuntimeMaxUse= directive.

- After reboot, dmesg will no longer show the error. systemctl status
systemd-journald shows that 10% of the size of /run is the max for journal file.

- In config app page, setting various values of log persistence works.

- On a fresh container with the patch, initial setup succeeds and
journald.conf.d file is setup without the RuntimeMaxUse= directive.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-10 09:36:34 -05:00
Sunil Mohan Adapa
f7277cf465
snapshot: Fix mounting /.snapshots subvolume and use automounting
Closes: #2085.

- Read the list of snapshots and properly determine the full subvolume name to
be used for mounting the .snapshots subvolume.

- Use systemd .mount units instead of editing fstab. Fstab editing is dangerous
and could result in system not booting properly. systemd units are better suited
for tool based editing while /etc/fstab is recommended for humans.

- Use automount feature provided by systemd using autofs to perform mounting. This
means that the backing filesystem is only accessed and mounted when the mount
point is accessed by a program. Parse errors in the mount/automount file and
incorrect mount parameters are also tolerated well with failure to boot.

Tests:

- On a fresh Debian Bullseye install with btrfs. Install FreedomBox with the
changes, create and delete manual snapshots. Rollback to a snapshot should also
work. /.snapshots should contain all the files inside each of the snapshots.

- After rebooting into a rolled back snapshot, create/delete and restore to a
snapshot should work. /.snapshots should contain all the files inside each of
the snapshots.

- Introduce an error in .mount file such the mount operation will fail. Reboot
the machine. Reboot is successful. /.snapshots is still mounted as autofs.
Trying to access /.snapshots will result in error during mount operation.

- On a vagrant box without changes. Install freedombox and ensure snapshot app
setup has been run. This creates the /etc/fstab entry. Apply the patches.
snapshot app will run and remove the mount line in /etc/fstab and create the
.mount entry. /.snapshots is still mounted but not because of .automount. After
reboot, /.snapshots is mounted with autofs and also with btrfs. Unmounting
/.snapshots and then trying to run 'ls /.snapshots' will perform the mount again.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-08 21:10:59 -05:00
Sunil Mohan Adapa
0f484d7eaa
snapshot: Fix issue with snapshot rollbacks
Closes: #2144.

- '--ambit' seems to a required argument if there is no default subvolume set on
the filesystem. Add it to prevent error during rollback.

- Description is not a required option for rollback (anymore?) and default
descriptions for the two snapshots are more descriptive.

Tests:

- On a fresh vagrant machine, run snapshot rollback with the patch. It fails.
With the patch, rollback succeeds.

- The description created for the rollback is the default one 'rollback backup'
and 'writable copy of #x'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-08 21:10:54 -05:00
Sunil Mohan Adapa
d0ea67cde6
ejabberd: Fix making call connections when using TURN
Closes: #2318.

We currently set 'restricted: false' to both stun and turn server configuration
in ejabberd. This works for stun but for turn, ejabberd assumes that
authentication is not needed even though it is needed for our coturn setup. Drop
the configuration option entirely as the desired values are already default in
both stun and turn cases.

Tests:

- On a fresh setup, install coturn and ejabberd. In ejabberd.yaml, the stun/turn
configuration does not have the restricted option.

- On a container without the patch, install coturn and ejabberd. Configuration
has restricted option. Apply the patch, ejabberd setup is updated and restricted
option is removed.

- Test that calls can't be made with TURN with 'restricted: false' set. Changing
it to true for TURN configuration allows the calls to be established. Remove the
restricted option entirely also works. This was tested by @Znoteer in #2318.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-02-06 19:20:30 -05:00
James Valleroy
982fec5a60
matrixsynapse: Use yaml.safe_load
yaml.load() now requires a Loader= argument. yaml.safe_load() passes
SafeLoader to yaml.load().

Fixes: #2315.

Tests:

- Matrix functional tests passed in testing container.

- Matrix functional tests passed in stable container.

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