6503 Commits

Author SHA1 Message Date
James Valleroy
a9148b2964
Release v21.4.4~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.4_bpo10+1
2021-07-24 20:21:35 -04:00
James Valleroy
9e4bff2622
Revert "debian: Ensure fuse gets replaced by fuse3"
This reverts commit 735e47f34855645017e173c4e9e0a0b20c59c43c.

The change is needed in bullseye, but prevents automatic upgrade for
buster-backports.
2021-07-24 20:19:23 -04:00
James Valleroy
6bfefbe9b6 freedombox Debian release 21.4.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmDx0YUACgkQd8DHXntl
 CAhYfg//dsc8XKiMWm0iBzfqoRw1n+vKWb7F/pKlCQztgK+tsUJ6kp6PCHH2P0tA
 HRuqmAbn+bSNefE8YhZYu0UDwE2Vo6zmc/z59ysGqJKEv6KS2mj0Ag//Lvi2X+cG
 xBVCexgvfB1z5l21fgOXE51KdmriXfJkFrK4VpQSQAMuxbPxpO1AStK9u2/CCKGi
 7jmjlPpUTcA0AoF01bgYFVi1fIfSgpwrO27M4fMT5kTbS3iSxVjPfB97Jok7HBht
 W8IJ6LQCESoRyWHRSvv2N875HWpboV4oF9RaRiUtTKIlTfU3rQmZ7ByrBeGBghFr
 Wm2qXgmfdTKB2bik1cLWx2D9aYBgHLLyNUHqmv4qr2ExWy3RnfDiUDDein1tcnlh
 Amb35N/avQEV3gQnHMt0PetElOHdloFdOgepRW1e/clGL90SKJaoeMXg28trZaFv
 pixeC8aydoSHZqI+kzxbdKEXR/iH2tgj9JxZjdmSdRgl3SdbkYyUrGjLdRgmUpHp
 Y/WTgCkScuZ1/ysO0TCU7wytTqCncqmWwbvLVLKbkyHGBdwzNXOBwk6y52aVjEKc
 q6gqmOkiuXBbDOSq2VgGNk9y+tOmH160hpyl+qFR0mMt7JqxOiFhPb3m0mgppz0s
 bi2hc+cSiAMHFl+r+93u30UNVmV7jJ9XoTQE1H4Keutw0egcfBA=
 =AVVp
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmD8qzoACgkQd8DHXntl
 CAjpCxAAjIJC0VlhO0DQfSlmYZKXEfo3IhmADxO9BifM29CaMV6hBuqe2TskWsYF
 qHmKTpdQef+fUsbov3qOxAabWXUQVVBZmWWnp/OUR5Tf1YuMQM99wYWj/TdWXyoM
 tUK4137xijq4fTWe0mjCdG4HC8XOMG4uUlE3dR3nBLxa4m//o80UCresExfuW63z
 zj8blFXRsULIBYp5WL/+fyDjCq0pbYRQUWWErXECiTxevN5ToeGL0A0gzPSjEZ1o
 0iDy7WhkWvgSZb4H/V2DUxi2LnZorCv1RME4LPGaFlwzjH3jvJyr9laTdF2tbP4v
 j4Aur7c33mdetcjTAjtaTW2qeioii9qWstEFR/h2rN3nuVB9lSSFRdfwHo9mVK4Y
 aKWPvnTxitQueaKBBT3U8ILuQrimEIGKjAAs0oB69DsS7tD1Z2v6GuzzS/J26sa0
 4CmnCi1y1qY/BKH6v9TLbce6eADnWC6IL/ZvGTZHpw8mIkuTRS5mamDT5iWkNGGu
 gLbMSkFSTg+/xWdUL6IYHmwaCIIIdJUkyvjI+0K9M7tgZua9w8hGnS7RZoaf0jtx
 ml0EBOgvbco7QWLhAcZa+nRgIBzNdwqoMNMtqPSz9+3ihYfVsUqlK2zXG0xMWksa
 XBdczZetF98pyeXdEZWAHxfrLvo7Fzr6hBx7KaSBSHaSskhue5o=
 =fIO4
 -----END PGP SIGNATURE-----

Merge tag 'v21.4.4' into debian/buster-backports

freedombox Debian release 21.4.4

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-24 20:07:20 -04:00
James Valleroy
4696acccf1
Release v21.4.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.4
2021-07-16 09:08:38 -04:00
James Valleroy
af1d21ce3b
action_utils: Don't print when unholding freedombox package
Some actions that use this function are expected to output
JSON. Any output from apt-mark can interfere with this.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 20:22:58 -04:00
James Valleroy
a24fcb2c90
upgrades: Check for held freedombox package daily
Guard against removing a hold while the package manager is busy.

Test:
1. Place hold on freedombox package.
2. Wait 3 minutes in development mode.
   - Package is held.
3. Touch /var/lib/freedombox/package-held.
4. Wait 3 minutes in development mode.
   - Package is not held.
   - Flag is removed.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 20:22:46 -04:00
James Valleroy
967d68cb92
upgrades: Check for held freedombox package in manual update
This is to recover from a situation where the package is held, and
then plinth process is interrupted so it cannot release the hold.

We check for and recover from this situation when installing new apps,
and when running dist upgrade. This provides another way to recover
from the problem, by running manual update.

Tests:

- (normal) No hold on freedombox package, and flag is not set. Run
  manual update. Afterwards, there is no hold, and flag is not set.

- (admin preference) Place hold on freedombox package, but flag is not
set. Run manual update. Afterwards, there is still a hold, but flag is
not set.

- (recovery) Place hold on freedombox package, but flag is
set. Run manual update. Afterwards, there is no hold, and flag is not
set.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 20:22:33 -04:00
James Valleroy
9c57347931
action_utils: Use flag to indicate freedombox package has been held
In case the plinth process is interrupted, the "finally" block that is
meant to unhold the package may not be executed, and the package will
stay held. The flag is used to indicate this situation, so it can be
resolved the next time apt_hold_freedombox is used.

Tests:

- (normal) No hold on freedombox package, and flag is not set. Install
  any app. Afterwards, there is no hold, and flag is not set.

- (admin preference) Place hold on freedombox package, but flag is not
  set. Install any app. Afterwards, there is still a hold, but flag is
  not set.

- (recovery) Place hold on freedombox package, but flag is
  set. Install any app. Afterwards, there is no hold, and flag is not
  set.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 20:22:22 -04:00
James Valleroy
eccc355203
action_utils: Separate function to hold freedombox package
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 20:22:07 -04:00
James Valleroy
146dd70611
Release v21.4.3~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.3_bpo10+1
2021-07-15 09:14:11 -04:00
James Valleroy
985cbba7ca freedombox Debian release 21.4.3
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmDl7VgACgkQd8DHXntl
 CAhxtw//ZYm/td2Sv2ogIPJFRoGWXnFE8Bbzs9r+z3tloVdVkut9+wBdvSZ+Amet
 lvyyRygdvseU4FfTz8B7aSEld6jGiOHyGxhm0GIlw9ajDQHznt3zp2p95cv/4nKt
 ysojp1rV/5YmBuDdnBG6ojTB2K6PWy5Xi4KXR4pDEpLF1vaqAUC07wiac+IthS2T
 FgEEekm4p8E2uxueWB6HYw0PLiE0EjmCQl8ykiwvvKXnqHDrAeQCYAWdSlbPBksL
 r9s2K2y89bcPvEwDJmEMzBpmqh/s4rdVCgveSq/hYI+g+GRNXb9/9QtCzqvI4eW/
 yHpiwBQGymxmg0jFhO5Lg4TBdVvGWxMQf1v/YaF3UvH7utlnAIh60uGuAwXBIjfg
 IsTC3x6PB5yGTPY9AU5q9Xkz4x//j98CVRSMNskDioRcgtw5X/949djgpIfFnpvR
 ZzMHUwy1A3qaQ0W6nKGqOuPhmRR806kodjhOIK79/Bp/xHTGend5EKY2Y7fGfrvq
 t6HGuz2aLDnncLTx/cqGJ3KLBldpADL5StZUzu73aNR0QyT8vnxomDz5czz7/cwp
 s+ADeOHdiIoTNFP6DPXlIO/ZCA3znggjJ+aP8X6CI5jGbtDDEHPWnJJ8Is/9x92W
 usHLJ2a4Pokp+0nCJSyYDjHHvoR8H66X7DuFQKIj90hs7KRRu1A=
 =JY5h
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmDwNHsACgkQd8DHXntl
 CAisSw/9GVSpafxbY430kPJKmu5JgjlWIC8rwNBVSBaT7eNF/GT+RZHt1FUb45pv
 JABu4LZsNkwHAZVLBTBfEprZUjmJIQ7tuioxGi5dheyaUFE5Xx2kUtNW+V2z8+35
 ZVznT7+2HSuzUKJlvjAHRnOinIqNHx+h8EYZL7BM9GHqVloR23ch49A9CkdaMZO2
 mvL40xqEM42rWWUzGOTL7ly6+6ST3LNMyk3kSYoGjXCMaocyR5GkhEwqBaQVHIpK
 QGCokCQkgOlUVwngIaY7Ow+v6K6wse0c+qV4eM5P6vZIZuWmGJg2L45BRH0Jyahq
 qDzGjNoN3MNJs1NOAlJ+jdQyoc9EU4mZDB13lJNd9v4rtjKN4vSFWCRm1d+ACDw8
 Z6dyFv1NcS1cMsIAkE27wsMZl5tDKlplPCKHUkQNXjgPewGAA4yRWZzny61o/6Qu
 nEQ5+vFBHr7RnHnccV6asB5d+/pVqMfaQHQYtO1Hm7nQRQIFxGUIA88Ogl1NYGEz
 HvaYsvYh9o+iLAXseRfSEZPCw/i3Xrj2N84cZhoiPrzPBuExuw9owPVGZ4nriywi
 D+qnsOWQ47VJ1J9daRsT5miC553ld9wb/Vnisc5eMZ9kEnfjL95VcxAfKS955ZtX
 2F0conQ1DAjvBtYsY2ucZ+v9SU0EyHGb9ng90WZg0zQ2lG8ytLo=
 =n680
 -----END PGP SIGNATURE-----

Merge tag 'v21.4.3' into debian/buster-backports

freedombox Debian release 21.4.3

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-15 09:13:27 -04:00
James Valleroy
3c975660f8
Release v21.4.3 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.3
2021-07-07 10:33:55 -04:00
James Valleroy
735e47f348
debian: Ensure fuse gets replaced by fuse3
Apply patch from Andreas Beckmann <anbe@debian.org> for #990758.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-07-06 16:55:33 -04:00
James Valleroy
bc1e814383
Release v21.4.2~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.2_bpo10+1
2021-04-04 07:13:05 -04:00
James Valleroy
f7599f82c5 freedombox Debian release 21.4.2
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmBg2JsWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICFF3D/9ot3StnwICMeiqzcRWxufqhggM
 qFjyoHsSiGaRM4nJrnLqDwOweNr7WzjqljuNPz0Mo8JqVcrNR7VATGCN/7BOJKyB
 imQrKOkvIYsXs9XalneRTF1ofYr7gETMWcO0xlCJccTH4ll0tz0PBk29hVLi7ATV
 lb44oqqBMYmd1AWH5unM5qTDu49z+oeehs5pnSBA8tV4xyJPk2iwuwjuy8zKglp0
 1LnP9OimTnm2B1oM6HeMRGbr0wBory7oypLr6uco6uwKJcs8qUmrG2V951nQU4ji
 nztgAkMmB5PpA2qEHX8TKuuqYothcmb82H/hAAIRuyEUKBNH0fakinm8Hru/bBl+
 72C7TwGsRf+DD3bOUZ7THaZQjjjjtChQJe2yhS7IRQ/Pn9Kr1+PeEYhN+AHYd6yw
 jLskBF8+qPpN8FviisMCEjUeGjTXZ7d3Alsjihtges/pmW9Ew7PrZC0qE/l/grTa
 PHMxT2rl6H7Of8BLfsS0UK4xq8IHKjRtqo09LLU2awKYEntd4bKVmkVjzUCgI6mS
 PQu+bfg5pPfpi1n5RZz/5u2d24ZICvP/AE++IduJ1X7HiwHTJZK4JfwtKpXLoEyz
 fvyY3x2it1NmWgjCl114xVED+BQfOt3hCILGH5lK/hNW1xjHW3y3DvUuV7HfP3Gj
 FRGDWaeywPj/ZnKjMw==
 =QPkv
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmBpnv8WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICL1nD/9oXQpDNQJKerQVcRGNUdgu1FNQ
 pmjHHaGLPcxXMS28BDfBi8Hv6yg5RuYao5ORwuL/AfDobXTes0cFiKf3ds3loeEE
 pqpiek/+MCwFGgLrFcWlRSI/SEYJKqHZBvO018oSPI7Nxj+9rxbs9yq0x+5UhJim
 wlvSPeBxzRlcTHJUljSPqp3DP93sFiCYs08DJE1FDBrMXg4JgrpqOio/6XJqdAY5
 MV2dEuKVnap3ooPsrdLCDfNoCfym+eZMeKO7tkcPdQVolf6MN3j4lqCCSfYX2BI8
 V/XizKCDDPhFBLnVGRr2yGacYtTgYEN/ENmAU7Z8zefPiij6x67XTBRHxy/PMy81
 LFa11qkstDVQyD/gj0qKRcKIx45O93Gyxq2UO0DZ0RxbkUIryAXNI+tPFfNx3MiQ
 74eFAF0tL5+kxZyrIz7gztaHm/yNGAJWzKIvfhC4+vZxQa4Pt7E19VAqOu8oCYYa
 YtsVOma+ykHib/jZU926TbZLE2y/gLpuCp2UYnRblEk7Kbo3EWKUVroG+dfTRuKH
 ctosNM8opLTA1Q4s68Yxj8tMkTJ+n6zHzkjChGx7vq9nQVNwCdfHbGt+72UFFjtx
 YFoGMG3f69zWUelMQhdtjARpOMQGAdHuyG9HwbkFW21oEfsrGqkfh9fYmQ0VVB4u
 aVzoAtIY02mB+e//Fw==
 =8KCX
 -----END PGP SIGNATURE-----

Merge tag 'v21.4.2' into debian/buster-backports

freedombox Debian release 21.4.2

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-04-04 07:11:55 -04:00
James Valleroy
afd737d956
Release v21.4.2 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.2
2021-03-28 10:54:53 -04:00
James Valleroy
5c55610234
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-03-28 10:54:23 -04:00
Burak Yavuz
d10b22c6ad
Translated using Weblate (Turkish)
Currently translated at 100.0% (1453 of 1453 strings)
2021-03-28 09:11:07 -04:00
Kirill Schmidt
7e599958fe
first_boot: Use session to verify first boot welcome step
Closes: #2074

sunil's changes:

- Ensure that secret is not asked for a second time after creating admin user
and logging in (this happens due to discarding of old session and creating new
one).

- Ensure that this logic is not applied to user using FreedomBox images who are
not required to input the first wizard secret.

- Change the name of the session variable for readability.

Tests performed:

- Without the patch, start first boot wizard on the first browser on a
  FreedomBox image (or run the file `base64 < /dev/urandom | head -c 16 | sed -e
  's+$+\n+' > /var/lib/plinth/firstboot-wizard-secret`). Finish the welcome step
  with first wizard secret. Then open a second browser or from another computer
  visit the web interface. The first wizard secret is not asked and user can
  create an admin account.

- Repeat with fresh image again with the patch. To mimic fresh image, one may
  run `sudo rm -f /var/lib/plinth/plinth.sqlite3` and `echo "password" | | sudo
  /freedombox/actions/users remove-user tester`. This time when a different
  browser other than the one that provided the first wizard secret try to access
  the account creation page, a redirection will occur to welcome page. Providing
  the first wizard secret takes the user to account creation page.

- Accessing network first wizard page or internal pages on second browser also
  takes one back to the welcome page.

- Accessing help pages from second browser requires login.

- Accessing account login page from second browser is allowed. After creating
  the account from first browser, second browser can login and continue the
  wizard.

- Clearing cookies in the middle of the wizard takes the user back to welcome
  page.

- Clear cookies in the middles of the wizard. Visit the wizard, go to first boot
  welcome page. Provide secret and the wizard will continue where it was left
  off.

- Clear cookies in the middles of the wizard. Visit the wizard, go to first boot
  welcome page. Access login page, login as admin. Then first wizard secret is
  not asked. First wizard can be continued.

- On a fresh image, simply complete the first wizard. No change to earlier flow
  is noticed. First wizard secret is only asked once at the beginning.

- On a fresh image, remove the file /var/lib/plinth/firstboot-wizard-secret.
  First wizard can be completed without the secret.

[sunil: improvements to original patch by Kirill Schmidt]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-03-28 09:07:13 -04:00
Reza Almanda
23757db9ec
Translated using Weblate (Indonesian)
Currently translated at 10.6% (155 of 1453 strings)
2021-03-28 09:05:28 -04:00
Michalis
5c76fe89ec
Translated using Weblate (Greek)
Currently translated at 73.5% (1068 of 1453 strings)
2021-03-28 09:05:06 -04:00
nautilusx
108760c39c
Translated using Weblate (German)
Currently translated at 100.0% (1453 of 1453 strings)
2021-03-28 09:04:48 -04:00
Burak Yavuz
93ce37808a
Translated using Weblate (Turkish)
Currently translated at 100.0% (1453 of 1453 strings)
2021-03-28 09:02:29 -04:00
James Valleroy
80327ad792
Release v21.4.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4.1
2021-03-13 11:56:46 -05:00
James Valleroy
3dbbd1d642
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-03-13 11:55:23 -05:00
Fioddor Superconcentrado
88f9edc508
Translated using Weblate (Spanish)
Currently translated at 99.9% (1452 of 1453 strings)
2021-03-13 10:58:08 -05:00
Michalis
22ba14ee56
Translated using Weblate (Greek)
Currently translated at 73.0% (1062 of 1453 strings)
2021-03-13 10:58:02 -05:00
Michael Breidenbach
06dc5192a7
Translated using Weblate (Swedish)
Currently translated at 99.9% (1452 of 1453 strings)
2021-03-13 10:57:54 -05:00
James Valleroy
91250cf405
Release v21.4~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4_bpo10+1
2021-03-11 08:31:40 -05:00
James Valleroy
74707de530 freedombox Debian release 21.4
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmA8Wc0WHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICEcnEACZy28cISrNG9vkBRbuXXKoR2O+
 iR+86WqgCpSgIthozKdOHB42FIyEyEVLp6OHjJ5UsQw2on19wxwq8tquY3o0MX9m
 quoE5O0qO446QwjTKOYHzbIa3m194D61BdAShUwYxeQMgQiyGyHdDFyuOMRq2LxH
 hbnggwQ/7vhs/8JLl59KtEFa3cFfxeK1+ZwI34S/lyh6zxxXdgtL747BX6J7pnde
 CEH4p1nZBECPe/iVAs2WeCUW1Ba0k6sz1vXegRnys3f9vg883MwX9fiDad00x0GN
 VWkndV7jW9sntn6Ximd7lQ2ni5sI5U6iI3HtMXWaOreJFRAqXzdMDP1iShvk8HMQ
 FbIaH/4A7NtWkGPSPINu9vnYyUcp9BZX0mSHbpx2ufSajNZWT7CjS4P9oKJlHGzD
 Zglo/6+gIsNTT6qNwzJGtA1LLkwlwiGYJQ3N8ntIQl8vG1K2qQSvjT5eOLlxN0OD
 3aTtSuVKTi1nIAJlZCgyzroVsM7hnHgxCig9pn0j1guH+Hg4RJIdfIcqXoKtOHAt
 tpxYw17/vfPXmBWVHy+RvRYuh6JuZC0oI0X2sx2jHo5skx0jNyzRjIXTckKapAxg
 7utBTlPjAKmjt3wXoXjKk8zoSUO2NW4oUxllkqiVV+Ifwj1vTuVpd2OOGWHDQQ0C
 IO4ffqgPS7hWE88MMw==
 =ETd7
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmBKG5oWHGp2YWxsZXJv
 eUBtYWlsYm94Lm9yZwAKCRB3wMdee2UICOCKD/9vVXqadQbZy8RF/BKvqi62F5FV
 edM6b9aIPWfLRFosXHlohf9wn3d3YSWXvspLao9UzI8qjer74slYKhP66HB0MjAj
 95noBxMqOdugLm/gGUwwDGMGoke4VYxL3ShC/WhXawQAbLfLkEpRhrjvGFmG3Sby
 T7lSWRN5crZuhoj33a9ORbcAjY5uvMAZ6HaecxpO8Ctvm1wYBgsu1lI3ZfJHPYEz
 KY5CfQ8/de2bPdRqWpGaVyzVhSof3d+YPZgo6KxUvMxXZ0L+a75hl4x3dNtcmmg7
 XNbYCrXLmwfOK9pTFnUZBgzfMDOTRuCc4Uph9aONZsrEGtzvGebjwx7ePJVLHP1Y
 ZY9ume8pSbkjiqohty1Itw9cqOJTyrjjwK3SXbf8aipeAdxdn228ZV7j0ej7D0Hp
 g0rUCX0837zQTrn/7MM8WhoxHaGvUITsGmZGSFnKHNVzoYxRnlHQzpZ9CNKu+Ri/
 THjFNlP0HVvcm9EhCvUoEtBPGs3kTMMoX3o52hzrpRo6fjLslVBLoWD69fu1KqH0
 UiT89oU7n2LzcRoTRXADulPtyEFsT3eqz6khO36MLnh3awCpYkdmHvEf7W1dk5KW
 2yfsnqBfJfrDieOF/W3YfXe0GGw9XT9Ipfcx//hTG/lc8pKgv+yxaiyYlnV2+UtP
 rA1O321z3r1mEZMwGQ==
 =94nm
 -----END PGP SIGNATURE-----

Merge tag 'v21.4' into debian/buster-backports

freedombox Debian release 21.4

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-03-11 08:31:02 -05:00
Veiko Aasa
631e10c09e
deluge: Fix daemon user not in freedombox-share group after installation
Add the debian-deluged user to the freedombox-share group *before* running
app setup. The app setup process restarts the deluged daemon
after which the process has correct group ownerships.

Tests done in Debian stable and testing dev containers:
- After installing the deluge app, checked from /proc/--process-id--/status that
the deluged daemon process has the freedombox-share group.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-03-05 17:36:07 -08:00
Veiko Aasa
8df60f596e
deluge, mldonkey, syncthing, transmission: Depend on nslcd.service
Add nslcd.service as a dependency to the services that depend on users
and groups defined in LDAP. deluged, mldonkey-server, syncthing@syncthing
and transmission-daemon services depend on freedombox-share LDAP group.

Closes #2061

Tests done with apps deluge, mldonkey, syncthing and transmission,
in both debian stable and testing dev containers, after applying changes:
- After installing an app and after reboot, the daemon user is a member
of the freedombox-share group.
- Checked with the `systemctl show` command that nslcd.service is added to
After=... dependencies.
- All the functional tests pass (in Debian stable, closed manually
the syncthing usage reporting form - #2059).

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-03-05 17:33:40 -08:00
Fioddor Superconcentrado
64b3fb98b2
config: Fix tests related to user home directory
Closes: #2014

- test_homepage_mapping_skip_ci: Don't expect fbx to run the test.
- test_homepage_field: Check additional precondition.

Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
[sunil: Minor refactoring to avoid flake8 warnings]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-03-05 16:23:55 -08:00
Burak Yavuz
378b2bdaba
Translated using Weblate (Turkish)
Currently translated at 100.0% (1453 of 1453 strings)
2021-03-05 19:50:48 +01:00
ikmaak
f514d6cfa2
Translated using Weblate (Dutch)
Currently translated at 100.0% (1453 of 1453 strings)
2021-03-05 19:50:47 +01:00
Fioddor Superconcentrado
2618d77d93 Generating developer documentation. 2021-03-05 13:12:54 +00:00
Michalis
fef06f1d3c Translated using Weblate (Greek)
Currently translated at 73.4% (1064 of 1449 strings)
2021-03-03 17:50:56 +01:00
Karol Werner
ad184e8bea Translated using Weblate (Polish)
Currently translated at 34.9% (506 of 1449 strings)
2021-03-03 17:50:55 +01:00
Dietmar
45ee9dd4f2 Translated using Weblate (German)
Currently translated at 100.0% (1449 of 1449 strings)
2021-03-03 17:50:55 +01:00
James Valleroy
8f6b6f87a0
Release v21.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.4
2021-02-28 21:37:19 -05:00
James Valleroy
2fd66b93f1
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-02-28 20:53:59 -05:00
James Valleroy
bcb2ff1b75
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-02-28 20:15:59 -05:00
Sunil Mohan Adapa
52b2c17ec3
matrix-synapse, coturn: Fix minor pipeline failures
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 17:08:55 -08:00
Joseph Nuthalapati
b7007eb873
matrix-synapse: Update description to talk about TURN configuration
Sunil:

- Minor update to the TURN server message.

- Drop updating the FAQ link since there may not be much time for translators to
translate the changed message due to our current release schedule. The old link
still works.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 16:28:56 -08:00
Joseph Nuthalapati
2ffde1b646
matrix-synapse: Auto configure STUN/TURN using coturn server
- Matrix Synapse will automatically pick up the locally installed coturn server
during its installation. This handles only the case where coturn is installed
and configured with a valid TLS domain name before matrix-synapse is installed.

- Allow overriding STUN/TURN config. Matrix Synapse uses the local coturn
server's configuration by default. However, an administrator can override the
STUN/TURN configuration from FreedomBox web interface. Allow administrator's
overrides to co-exist with FreedomBox's managed STUN/TURN configuration.
Administrator's configuration, if it exists, always overrides FreedomBox's
managed configuration. Any updates to FreedomBox's managed configuration will
have no impact on the administrator's configuration since the latter takes
precedence.

Sunil:

- Collapse multiple turn actions into a single one for simplicity. Sending empty
configuration means removal of the configuration.

- Ensure that when removing configuration file is idempotent.

- Manage TURN configuration even when app setup is not yet completed. This fixes
issue with TURN configuration not getting setup on app installation and setup.

- Fix issue with TURN configuration getting updated on form submission even when
the field is not changed. This is due to mismatch between the browser submitted
\r\n with the internal \n.

- Simplify JavaScript for the form and attach handlers only after DOM is ready.

- Drop the no-JS message since the loss of functionality is trivial and to
reduce translation burden.

- Fix issue with URIs and secret parameters not getting updated unless the
managed checkbox changes.

- Drop specialized success messages for TURN configuration update to reduce
translation burden.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 16:28:53 -08:00
Joseph Nuthalapati
fd4339aef4
coturn: Remove advanced flag, make app visible to all
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 16:28:49 -08:00
Joseph Nuthalapati
6e93633584
coturn: Minor refactor view to use utility to generate URIs
Sunil:
 - Join the string in the template instead of the view.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 16:28:46 -08:00
Joseph Nuthalapati
ceacde67b9
coturn: Add new component for usage of coturn by other apps
Sunil:

 - Add TurnConfiguration to reference documentation. Add more details in
 docstrings.

 - Rename the component to TurnConsumer since 'Component' in the name is
 redundant and unconventional. Also, hopefully, the component will retain the
 API over multiple TURN servers.

 - Log when notifying other components about configuration change.

 - Use TurnConfiguration class more widely.

 - Refactor for simplicity.

 - Additional tests.

 - Move URI generation code into TurnConfiguration.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-02-28 16:28:41 -08:00
James Valleroy
db993ecb16
upgrades: Disable searx during dist-upgrade
Avoid high CPU usage due to uwsgi continuously restarting before searx
config is upgraded.

Helps #1644.

Tests: Ran dist-upgrade for each case:

- Without searx installed -> no log messages related to searx.

- With searx installed but not enabled -> searx config is upgraded.

- With searx installed and enabled -> searx is disabled, later config
  is upgraded, and searx is re-enabled. Searx page can be accessed at
  the end.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-02-24 11:34:25 +02:00
James Valleroy
5718cca763
Release v21.3~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.3_bpo10+1
2021-02-22 10:29:47 -05:00