4013 Commits

Author SHA1 Message Date
James Valleroy
8a54c2397c
Release v0.49.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.49.0
2019-02-05 22:56:17 -05:00
James Valleroy
1deb264a26
doc: Fetch latest manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 22:55:19 -05:00
James Valleroy
2371442292
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 22:21:32 -05:00
Petter Reinholdtsen
97266e7511
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1018 of 1018 strings)
2019-02-06 04:19:02 +01:00
danielwine
2ae479c17d
Translated using Weblate (Hungarian)
Currently translated at 90.9% (925 of 1018 strings)
2019-02-06 04:19:01 +01:00
Joseph Nuthalapati
eb341022a2
debian: Add smoke test with autopkgtests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 21:58:40 -05:00
James Valleroy
e385e7a87a
monkeysphere: Re-enable functional tests
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 21:51:44 -05:00
James Valleroy
a3dbe56a4e
repro: Also disable functional tests
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 21:51:18 -05:00
Sunil Mohan Adapa
3173c70743
datetime: Fix diagnostic test to not ignore first two servers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 15:39:22 -08:00
James Valleroy
47366770c8
vagrant: Put hold on freedombox package during provision
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 15:21:34 -08:00
James Valleroy
2c7d1a09c1
datetime: Switch from ntp to chrony
Use the default config, which only runs as client.

Fixes #971

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-05 15:21:31 -08:00
Sunil Mohan Adapa
5a159f7d39
upgrades: Improve handling of backports
- Merge backports functionality into upgrades module.

- No need to enable systemd timer as dh_installsystemd automatically enables
  this during package installation and upgrade.

- Use https:// and deb.debian.org for repository checking. When using Tor for
  package installations request the URL via Tor.

- Make daily checking service more generic for all kind of future apt repository
  updates.

- Force removal of repository file during purge to avoid failures.

- Don't add contrib/non-free as backports is intended to be enabled for just the
  freedombox package and it is free. When the need arises, we can introduce
  contrib/non-free. This also eliminates an issue that adding these components
  doesn't work without the usage of tor.

- Allow generate apt preferences file to avoid lintian complaining about its
  presence. Remove on purge.

- Add unattended upgrades origin pattern to allow it to upgrade from backports
  repositories.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:55 -08:00
Sunil Mohan Adapa
c0de223ae4
action_utils: Expose URL checking utility for generic use
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:52 -08:00
Sunil Mohan Adapa
2565737f38
tor: Make a utility method public
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:48 -08:00
Joseph Nuthalapati
3d38b8a686
backports: Add buster-backports to apt sources list
Fixes freedombox-team/freedom-maker#149

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-05 14:58:27 -08:00
Prachi Srivastava
b1c8c22b92
repro: Disable app due to issues with Debian package
Signed-off-by: Prachi Srivastava <prachi.chs.2009@gmail.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-04 10:07:17 -08:00
James Valleroy
9aa48091df
radicale: Handle data migration for upgrade to 2.x
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-03 22:59:52 -08:00
James Valleroy
c5ee844cb1
shadowsocks: Use resolvable domains in functional tests
Shadowsocks server will fail to start if the domain cannot be
resolved.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-03 17:43:25 -08:00
Sunil Mohan Adapa
655c2be214
backups: Improve performance of backup download
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:34 -05:00
Sunil Mohan Adapa
01492895c4
backups: Fix incomplete download archives
- Downloaded archives can't be fully extracted as tar.gz is incomplete at the
  end and corrupt. This is due to complete gzip streaming implementation that is
  does not flush the final bytes of gzip stream. Remove custom implementation
  and get gzipped stream directly from borg.

- Fix mimetype for .tar.gz to application/gzip.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:32 -05:00
Sunil Mohan Adapa
eb2b3bd86e
backups: Minor refactoring
- Mark some methods private.

- Fix some flake8 warnings.

- Remove unused exception.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:29 -05:00
Sunil Mohan Adapa
de22c79665
backups: Minor styling fixes
- Run yapf

- Fix flake8 errors/warnings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:24 -05:00
Sunil Mohan Adapa
c22bec1cf4
backups: Remove dead code
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:21 -05:00
Sunil Mohan Adapa
34e0394713
backups: Minor styling fixes
- Run yapf

- Address some flake8 errors/warnings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:19 -05:00
Sunil Mohan Adapa
623bbc87e8
backups: Remove incorrectly set buffer size during download
- Don't set bufsize to 1 while streaming backup download. This is only effective
  with text streams with universal_newline flag set. An actual buffer size of 1
  is very inefficient and plain wrong. Leave the python default of
  io.DEFAULT_BUFFER_SIZE.

- Minor simplification to argument passing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-03 17:00:15 -05:00
Allan Nordhøy
484992fe37
Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.6% (1014 of 1018 strings)
2019-02-02 13:09:28 +01:00
James Valleroy
3941ec10fe
radicale: Handle migration from 1.x to 2.x
When radicale 2.x is available in testing, the migration can be
triggered by bumping the module's version.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-01 14:53:19 -08:00
Prachi Srivastava
62b4f67a2e
help: Use freedombox package instead of plinth for version
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-30 23:10:08 -08:00
J. Carlos Romero
7f04088ddd
mldonkey: show 'Learn more...' link in package page when installed
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-29 10:22:25 -08:00
Pavel Borecki
17c2a0322e Translated using Weblate (Czech)
Currently translated at 100.0% (1018 of 1018 strings)
2019-01-29 17:59:09 +01:00
Sunil Mohan Adapa
72c1c7349f
js: Remove javascript license link from footer
The link is hidden but not removed. librejs will still parse it. Ideally we
would want to do this from <link data-jslicense='1' href=''> but that seems to
cause problems for librejs.

Librejs users can still find out about the license of Javscript script file
using Librejs menu.

We already have a link to FreedomBox source code in the home page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-29 22:19:34 +05:30
Sunil Mohan Adapa
68777a5cfe
js: Full librejs compatibility
Add information about all JS licenses into the Javascript licenses page so that
librejs detects it. In all Plinth pages and jsxc launch page.

Add doctype and fix styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-29 22:18:16 +05:30
Sunil Mohan Adapa
fa06f75ba1
ui: Fix regression with card icon style in front page
- Don't show tinted icons in any page except apps page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 17:50:58 -08:00
Prachi Srivastava
743d976d50
security: Moves input field focus javascript to django forms
Signed-off-by: Prachi Srivastava <prachi.chs.2009@gmail.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 17:39:22 -08:00
Prachi Srivastava
f43e185a8c
security: Moves inline javascript to files
Signed-off-by: Prachi Srivastava <prachi.chs.2009@gmail.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 17:39:12 -08:00
Prachi Srivastava
19e244f152
networks: remove unused html
Signed-off-by: Prachi Srivastava <prachi.chs.2009@gmail.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 17:38:16 -08:00
James Valleroy
010e26e94a
Release v0.48.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.48.0
2019-01-28 19:33:25 -05:00
James Valleroy
987ee58a31
doc: Fetch latest manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 19:21:49 -05:00
James Valleroy
0eba44bbdb
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 18:24:32 -05:00
Sunil Mohan Adapa
c400c21e88
infinoted: Wait for upto 5 minutes to kill daemon
Closes #1442.

When disk is very busy, sending KILL signal to the process may not kill it
immediately. So wait upto 5 minutes for it. This does not increase the time in a
regular case if the kill works immediately.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 18:03:49 -05:00
Sunil Mohan Adapa
dc9ab52edc
axes: Minor fixes to configuration for IP blocking
- Use the X-Forwarded-For header only if specified in the configuration. This
  makes FreedomBox safe to use when not behind a reverse proxy server (although
  we are unlikely to do this).

- When fetching the IP address to reset after successful login, use the
  X-Forwarded-For header only if specified in the configuration.

- Minor flake8 refactorings.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-28 17:17:32 -05:00
Sunil Mohan Adapa
22dd2d26f3
mldonkey: Add functional test for uploading
- Run yapf for automatic formatting.

- Move disable test to the end so that after all test are run, app is usually
  disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 10:54:53 -08:00
J. Carlos Romero
1c8c9d067a
mldonkey: Add backup/restore support
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 10:54:27 -08:00
Sunil Mohan Adapa
f6d3af15ec
help: Minor refactoring in get-logs action
- Make command line arguments more readable.

- Don't collect and reprint the logs. Let them be printed directly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 10:13:54 -08:00
James Valleroy
b8737ad663
help: Add functional test to check status logs page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 09:57:02 -08:00
James Valleroy
5a8873508d
help: Add action script to read logs from journal
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 09:56:59 -08:00
James Valleroy
27cfd4786a
help: Use journalctl to show status log
The status log file had been removed previously.

Closes #1461

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 09:56:51 -08:00
Sunil Mohan Adapa
c79b9b276f
service: Fix warning to use collections.abc
Fix the following warning:

"DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated, and in 3.8 it will stop working"

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-28 14:06:00 +05:30
Sunil Mohan Adapa
41d9419ddd
storage, backups: Minor styling and yapf fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-27 11:10:42 -05:00
Sunil Mohan Adapa
9e316baa99
storage: Fix false error message visiting home page
When visiting homepage as a non-admin user, don't throw an error into the
console about not being able to get root partition information. This is a
regression from refactoring during backups change.

Fixes: #1468.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-27 11:10:36 -05:00