Commit Graph
3806 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 2526c98de6 static: Use SVG logo during first wizard welcome step
- This removes the need to ship a 67K file and scales better.

- Rename the file to have lowercase chars only for consistency.

Tests performed:

- Goto home page, see the logo at the bottom properly displayed.

- Goto the first wizard welcome page, notice that the logo is displayed. Also
the dimensions of the image are same as without the change.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:09:51 -04:00
Sunil Mohan Adapa 05670257fd web_server: Suppress warnings that static directories don't exist
When JSXC is not installed, currently we get warnings that jsxc directories are
not found when we start the web server.

Suppress warning that some of the static directories don't exist. Since there is
no way to add/remove those tree mounts at will, we need to add them all before
hand even if they don't exist now. If the directories becomes available later,
CherryPy serves them just fine.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-04-24 10:52:47 +03:00
Veiko Aasa 2d963ec461 users: Try-restart service after service is added to the sharing group
Try-restart the service (instead of restart) after adding service to the
freedombox-share group to avoid starting the service if app is disabled.

Tests performed:
- Remove syncthing user from the freedombox-share group, disable
  syncthing app, increase app version. After the app is upgraded,
  verify that syncthing user is in the freedombox-share group and
  syncthing@syncthing.service remains disabled.
- Remove syncthing user from the freedombox-share group, enable
  syncthing app, increase app version. After the app is upgraded,
  verify that syncthing user is in the freedombox-share group and
  logs show that syncthing@syncthing.service was restarted.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-04-23 11:21:01 -07:00
Nektarios Katakis 4187a19c34 syncthing: add to freedombox-share group
Closes: #1808

Test performed:
- Install samba in development VM and create open share (owned from root:freedombox-share).
- install syncthing and create syncronization folder in the above openshare.
- Sync files from desktop peer to development VM one on the above folder.

Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-04-23 13:58:07 +01:00
Joseph Nuthalapati 1b3359faf7 Translated using Weblate (Telugu)
Currently translated at 65.2% (820 of 1257 strings)
2020-04-23 09:11:17 +02:00
Luis A. Arizmendi faf9257bdd Translated using Weblate (Spanish)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-23 09:11:17 +02:00
James Valleroy 167895b537 Release v20.7 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-20 18:39:06 -04:00
James Valleroy 5efe523bec locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-20 17:54:31 -04:00
James Valleroy 0d059b7553 matrixsynapse: Handle upgrade to 1.12.*
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-04-19 16:46:48 -07:00
James Valleroy 6d1c637c1d upgrades: Allow installation of python3-twisted from backports
- matrix-synapse >= 1.12 requires python3-twisted >= 18.9.0-8~.

- python3-twisted requires matching version of python3-twisted-bin.

- Increment upgrades module version.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-04-19 11:23:59 -07:00
Veiko Aasa d26e87661b gitweb: Improve error handling when creating repository
If an error occurs during creation of a git repository, delete possibly
corrupted git repository directory and show more specific error message.

Closes #1829

Tests performed:
- Gitweb unit and functional tests pass
- Create a small disk for git repositories:
  > dd if=/dev/zero of=disk.img iflag=fullblock bs=128k count=100 && sync
  > mkfs.ext4 disk.img
  > mount -o loop disk.img /var/lib/git/
- Clone a large repository https://salsa.debian.org/freedombox-team/plinth
  Disk got full during cloning remote repository. Repository listing do not
  show this repository anymore. (No errors is shown to the user.)
- Fill disk space:
  > head -c 1G </dev/urandom > /var/lib/git/myfile
- Disk is full. Cloning an existing remote repository fails with an error
  message (No space left on device)
- Disk is full. Creating a new repository fails with an error message
  (No space left on device)

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-18 15:23:11 -04:00
Joseph Nuthalapati 202980b6d5 Translated using Weblate (Telugu)
Currently translated at 64.9% (816 of 1257 strings)
2020-04-15 15:11:14 +02:00
Localisation Lab 4a435f0ca0 Translated using Weblate (French)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-15 15:11:14 +02:00
vihor 14b4c6b795 Translated using Weblate (Serbian)
Currently translated at 11.2% (141 of 1257 strings)
2020-04-13 07:34:40 +02:00
Coucouf d3c8aac7c3 Translated using Weblate (French)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-13 07:34:40 +02:00
James Valleroy ba0bb524ee Release v20.6.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-11 09:57:07 -04:00
vihor 0e0ce2d6cb Translated using Weblate (Serbian)
Currently translated at 10.5% (132 of 1257 strings)
2020-04-11 15:36:20 +02:00
wind 4786272efe Translated using Weblate (Russian)
Currently translated at 75.3% (947 of 1257 strings)
2020-04-11 15:36:19 +02:00
Jeannette L 67ed607c86 Translated using Weblate (Italian)
Currently translated at 50.1% (630 of 1257 strings)
2020-04-11 15:36:17 +02:00
Jeannette L f96e87a5d5 Translated using Weblate (French)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-11 15:36:17 +02:00
Jeannette L 11b43fd8ee Translated using Weblate (German)
Currently translated at 99.9% (1256 of 1257 strings)
2020-04-11 15:36:16 +02:00
Coucouf eb2e10833a Translated using Weblate (French)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-11 08:28:02 +02:00
nautilusx d3c462ca40 Translated using Weblate (German)
Currently translated at 99.9% (1256 of 1257 strings)
2020-04-09 05:20:56 +02:00
Manuela Silva ba32cd1208 Translated using Weblate (Portuguese)
Currently translated at 13.6% (172 of 1257 strings)
2020-04-08 15:55:30 +02:00
Coucouf a723352d19 Translated using Weblate (French)
Currently translated at 100.0% (1257 of 1257 strings)
2020-04-08 15:55:28 +02:00
Allan Nordhøy 9f0d5dc0fa Translated using Weblate (German)
Currently translated at 99.7% (1254 of 1257 strings)
2020-04-08 15:55:26 +02:00
Allan Nordhøy f3fc0654fb Translated using Weblate (Norwegian Bokmål)
Currently translated at 86.0% (1082 of 1257 strings)
2020-04-07 21:03:07 +02:00
Allan Nordhøy f83302e541 gitweb: Use proper ellipsis char when showing clone progress
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-04-07 10:09:32 -07:00
James Valleroy c43ba1d824 users: Fix regression where form help_text line was dropped
Thanks to coucouf for pointing this out.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-04-07 10:05:28 -07:00
James Valleroy 64024725be Release v20.6 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:53:29 -04:00
James Valleroy 7f7821e886 locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:00:47 -04:00
Coucouf 308dd7425c Translated using Weblate (French)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-07 01:58:35 +02:00
Luis A. Arizmendi 97b023e5f1 Translated using Weblate (Spanish)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-07 01:58:20 +02:00
Joseph Nuthalapati 4f6d987ef4 infinoted: Fix permissions of sync directory
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 19:54:53 -04:00
Joseph Nuthalapati 435b028d17 firewalld: Force upgrade anything in [0.7, 0.9)
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 19:03:02 -04:00
vihor e14ba856ae Translated using Weblate (Serbian)
Currently translated at 7.6% (96 of 1261 strings)
2020-04-06 04:28:26 +02:00
Joseph Nuthalapati 7b5aa454fc Translated using Weblate (Telugu)
Currently translated at 65.1% (821 of 1261 strings)
2020-04-06 04:28:24 +02:00
Coucouf a3eda27b54 Translated using Weblate (French)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-06 04:28:23 +02:00
Joseph Nuthalapati 900d4e7e18 ikiwiki: Disable edits. Add moderation of comments
Fixes #1631

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-05 18:54:52 -04:00
Thomas Vincent 97846f60cb Translated using Weblate (French)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-05 15:06:19 +02:00
Coucouf 8cc4691674 Translated using Weblate (French)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-05 15:06:19 +02:00
vihor 9d6d3427da Added translation using Weblate (Serbian) 2020-04-04 18:07:30 +02:00
Sunil Mohan Adapa 8cae5af622 syncthing: Update description to mention 'syncthing' group
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-04 09:32:03 -04:00
Joseph Nuthalapati ec8702f848 app: Fix grammar in developer documentation string
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-04 09:32:00 -04:00
Joseph Nuthalapati d2993236e3 cosmetic: Minor yapf and other fixes
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-04 09:31:57 -04:00
Joseph Nuthalapati e04ae48637 users: Add component for managing users and groups
- Handle groups needed by an app.
- Handle reserved usernames for an app.
- Updated documentation
- Updated unit tests

Tests performed:
  - Reserved usernames: ez-ipupd, ejabberd, Debian-minetest, mldonkey,
    monkeysphere, mumble-server, privoxy, quasselcore, radicale, debian-tor,
    debian-transmission
  - Reserved usernames checks should work in the following forms:
    - Create user
    - Update user
    - First boot user creation
  - Full list of available groups should appear in following cases:
    - Create user form
    - Update user form
  - Full list of groups should get created in Django DB during:
    - Update user form display
    - First boot form save
  - When updating the last admin user, the 'admin' group choice is checked
    and disabled.
  - Following groups show up (sorted by group name):
    - bit-torrent: Download files using BitTorrent applications
    - git-access: Read-write access to Git repositories
    - i2p: Manage I2P application
    - wiki: View and edit wiki applications
    - minidlna: Media streaming server
    - ed2k: Download files using eDonkey applications
    - freedombox-share: Access to the private shares
    - web-search: Search the web
    - syncthing: Administer Syncthing application
    - feed-reader: Read and subscribe to news feeds
    - admin: Access to all services and system settings
  - Directory validation form checks for write permissions for following apps:
    - deluge with debian-deluged user
    - transmission with debian-transmission user
  - Sharing app should show all the groups in add/edit share forms
  - The following apps should get added to share group during setup:
    debian-transmission
    debian-deluged
  - Unit tests pass
  - Functional tests for users and groups pass
  - Test that an app (example syncthing) provides the necessary
    permissions to users in that group (but not in admin group).

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Fix i18n of group descriptions]
[sunil: Update developer documentation]
[sunil: Separate out cosmetic changes]
[sunil: Fix component ID for mumble]
[sunil: sharing: Remove unneeded dependency on users app]
[sunil: Implement better API for getting groups in component]
[sunil: Fix incorrect regression change ttrss app]
[sunil: Make iterating over gourps more readable]
[sunil: Improve tests, drop single use fixtures]
[sunil: Simplify test_view.py fixture]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-04 09:31:35 -04:00
Allan Nordhøy e6e67f7d53 Translated using Weblate (Hindi)
Currently translated at 65.1% (821 of 1261 strings)
2020-04-03 22:11:10 +02:00
Allan Nordhøy 8252332072 Translated using Weblate (Italian)
Currently translated at 50.1% (633 of 1261 strings)
2020-04-03 22:11:10 +02:00
Allan Nordhøy 62f75f16d6 Translated using Weblate (French)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-03 22:11:09 +02:00
Allan Nordhøy b9b4a2058b Translated using Weblate (German)
Currently translated at 100.0% (1261 of 1261 strings)
2020-04-03 22:11:09 +02:00