3970 Commits

Author SHA1 Message Date
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
Sunil Mohan Adapa
c35cecb34a
openvpn: Add backup/restore support
- Add functional tests

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-27 08:16:24 -05:00
Sunil Mohan Adapa
1d42081c62
radicale: Fix issue with configuration changes not applying
With newer version of radicale (>2.1), when configuration is changed, it is not
applied until the application is disabled and re-enabled.

Also make sure that configuration changes don't start a daemon when it is
disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-27 00:15:44 -08:00
James Valleroy
af018e3018
radicale: Add functional tests for setting access rights
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 22:06:57 -08:00
James Valleroy
24f1967b6a
radicale: Use rights file by default for radicale 2.x
The default rights file shipped in radicale 2.x package is equivalent
to owner_only. By setting this as our default, we can avoid any change
to the default config.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 22:06:49 -08:00
James Valleroy
bb29e0932e
radicale: Don't change auth type for radicale 2.x
The default, remote_user, works ok when using uwsgi.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 22:06:41 -08:00
James Valleroy
15094525b1
radicale: Only set hosts for radicale 1.x
Not used with uwsgi, which is enabled for radicale 2.x.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 22:06:21 -08:00
Sunil Mohan Adapa
dfd46281c5
Serve default favicon for apps that don't provide one
Based on: https://salsa.debian.org/freedombox-team/plinth/merge_requests/1306

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 20:23:16 -08:00
Sunil Mohan Adapa
529c281734
syncthing: Add backup/restore support
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-26 21:30:29 -05:00
Sunil Mohan Adapa
983f4d13e8
backups: Fix showing not-installed apps in create backup page
- Also minor styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 17:59:55 -08:00
Sunil Mohan Adapa
f32239d32b
backups: Upgrade apps before restoring them
- All install/upgrade in all cases and not just for non-snapshot cases.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 17:11:15 -08:00
Joseph Nuthalapati
7d6284a829
backups: Add a loader to the restore button to indicate progress
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 17:02:30 -08:00
Joseph Nuthalapati
32b470bc7c
backups: Automatically install required apps before restore
Fixes #1460

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 17:02:05 -08:00
Sunil Mohan Adapa
9295914a6c
mldonkey: Disable app due to bug during restart
See:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920466
https://salsa.debian.org/ocaml-team/mldonkey/merge_requests/1

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 14:39:35 -08:00
Sunil Mohan Adapa
260dcd4d32
mldonkey: Update description and minor updates
- Update description to simply and talk about multiple protocols supported.

- Don't diagnose on IPv6 as mldonkey does not listen there.

- Run yapf and isort.

- Minor styling fixes.

- Update functional tests to check for service running.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 14:39:31 -08:00
J. Carlos Romero
548c6b98f3
mldonkey: Add new module for the eDonkey network
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-25 14:39:10 -08:00
Sunil Mohan Adapa
10581173b5
fail2ban: Pickup new configurations without reboot
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-24 14:28:26 -08:00
Sunil Mohan Adapa
f113a3bfc9
fail2ban: Split and update configuration files
- Easy to configure for separate services.

- Unique names ensure that system administrator FreedomBox configuration files
  don't conflict with system administrator created ones.

- Set maximum attempts to 10 globally instead of 5.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-24 14:20:27 -08:00
Prachi Srivastava
760fa77b70
fail2ban: Enable bans for apache auth failures
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-24 13:41:09 -08:00
James Valleroy
de2f1437ea
django: Remove deprecated AXES_BEHIND_REVERSE_PROXY
Closes #1244

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-23 16:24:16 -08:00
Johannes Keyser
e86de73fe5 Translated using Weblate (German)
Currently translated at 100.0% (1012 of 1012 strings)
2019-01-23 22:07:27 +01:00
Joseph Nuthalapati
bacc2bcb21
matrix-synapse: Use '::' as the IPv6 bind address
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-23 13:02:58 -08:00
Joseph Nuthalapati
b2c6112990
matrix-synapse: Fix startup error caused by bind_address setting
- Drop the `bind_address` key during upgrade
- Use the new `bind_addresses` key instead

Fixes #1420

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-23 13:02:55 -08:00
Joseph Nuthalapati
80b4b654de
ci: Export freedombox.deb as build artifact instead of plinth.deb
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-23 10:40:37 +05:30
Petter Reinholdtsen
005aec6e75
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1012 of 1012 strings)
2019-01-23 05:04:46 +01:00
Sunil Mohan Adapa
3bcf21958a
ui: Re-add background for home, apps and system pages in small sizes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:48:34 +05:30
Sunil Mohan Adapa
35a02d00b4
ui: Compact pages on extra small screen sizes
- Don't take up the too much margins with content container.

- Fallback to white background to avoid container boxes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:48:06 +05:30
Sunil Mohan Adapa
4c65d34741
ui: Hide restart/shutdown items when navbar is collapsed
- Keep unimportant items hidden on small screens.

- Remove dividers that cause confusion.

- Avoid a scrollbar inside the menu when user menu is expanded. Bootstrap
  intended to show exactly 8 menu items.

Fixes #1431.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:57 +05:30
Sunil Mohan Adapa
d767e64703
ui: Show help nav item text when navbar is collapsed
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:46 +05:30
Sunil Mohan Adapa
dca149821b
ui: Fix setting width of card-list at various page sizes
Reuse bootstrap .container class to perform the width calculations instead of
explicitly setting it. This makes the size of card list match the rest of the
content like navigation and text content.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:36 +05:30
Sunil Mohan Adapa
ba66f37528
ui: Style frontpage application info like regular content
- Remove custom styling and use the normal content-container styling.

- Remove margins on card-list to make it align better with content containers.
  This can be seen when view application information in home page and in help
  page.

- Add bottom margin to content container.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:17 +05:30
Sunil Mohan Adapa
bacb0c056a
ui: Underline the logo along with 'Home' text when active
- This works properly in mobile sizes by underlining only the logo.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:03 +05:30
Sunil Mohan Adapa
eb19c9a319
ui: Rename page specific CSS classes
Fixes #1349.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:46:34 +05:30
Sunil Mohan Adapa
7279db3f2c
ui: Fix top margin for content containers
Currently, when a message is shown at the top or in users and groups page, The
top margin is too short. Increase it to 25px from 5px. Also:

- Don't use the .thumbnail class for containers as this does not match the
  semantics. Create and use class .contain-container.

- Also create class .card-container for all container containing cards. Unused
  for now.

- Indentation fixes.

- Remove duplicated rule.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:46:23 +05:30
Allan Nordhøy
bb27d7c457
Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.5% (1007 of 1012 strings)
2019-01-16 12:20:03 +01:00
Doma Gergő
ff13a26a6f
Translated using Weblate (Hungarian)
Currently translated at 91.4% (925 of 1012 strings)
2019-01-16 12:20:02 +01:00
Pavel Borecki
024d383fdf
Translated using Weblate (Czech)
Currently translated at 100.0% (1012 of 1012 strings)
2019-01-16 12:20:00 +01:00
Doma Gergő
3486021611 Translated using Weblate (Hungarian)
Currently translated at 89.6% (908 of 1013 strings)
2019-01-15 04:39:31 +01:00
James Valleroy
19d335bf38
Release v0.47.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.47.0
2019-01-14 22:09:06 -05:00
James Valleroy
37dfc7876b
debian: Update debhelper compat version to 12
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-14 22:03:22 -05:00
James Valleroy
76b709fba0
Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-14 21:55:47 -05:00
James Valleroy
97af4d7bed
Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-14 20:58:43 -05:00
Sunil Mohan Adapa
d89011cc01
Fix i18n for menu strings
- There should not be a space in front of the text. This is a styling issue.

- Remove the CSS rule causing issues with spacing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:38:04 -08:00
Sunil Mohan Adapa
de5ba012e1
icons: Fixes for switching to fork-awesome
- Update documentation pointing to Bootstrap Glyphicons.

- Consistently use trash-o. It is also more clear at the sizes we are using.

- Use hourglass-o instead of hourglass.

- Use diaspora icon instead of generic icon for diaspora app.

- In cards, don't set 3x size. It is not used. Instead we are setting our custom
  size.

- Remove unused CSS rule for .sidebar .fa

- Align the FreedomBox logo to center with 'Home' text.

- Fix swapped icons for 'Client Apps' button.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:38:01 -08:00