5433 Commits

Author SHA1 Message Date
James Valleroy
41498ba9f6
d/copyright: Fix path to visual_design
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:15:58 -04:00
Sunil Mohan Adapa
ff44a7de5a
static: Don't ship visual design file and unused images
- Move all the unused image files into doc/visual_design directory.

- Reduces the size of the shipped .deb binary significantly.

Closes: #1840.

Tests performed:

- Ensure that each of the files moves are not referenced anywhere in the source
code.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:10:02 -04:00
Sunil Mohan Adapa
68132f5dce
setup.py: Don't install/ship .po files
- These files are not necessary for the running of the program. Only .mo files
are referenced by gettext library at runtime.

- This reduces the size of the .deb binary.

Tests performed:

- Build Debian packages. Upgrade on a stable setup. Switch language to Spanish
and notice UI strings in Spanish.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:09:59 -04:00
Sunil Mohan Adapa
858c270b49
mediawiki: Reuse existing images in functional tests
Tests performed:

- Re-run mediawiki functional tests

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:09:56 -04:00
Sunil Mohan Adapa
e745031ab2
static: Reduce the size of the background noise image
Instead of tiling a 512px x 512px image, use 128px x 128px. The different is not
noticeable. Reduces the web page size for all pages by 120KiB. Also reduces the
shipped package size.

Tests performed:

- Visually compare the web page before and after the change. Notice no
difference.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 16:09:54 -04:00
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
af5e0e1b24
debian: Remove timer to setup repositories properly
When removing systemd services, dh_installsystemd has no idea about services
present in the older versions that been removed. So, it generates no handling
scripts for those services. No convenience methods exist too.

dh_installsystemd uses deb-systemd-helper which maintains state files in
/var/lib/systemd/deb-systemd-helper-enabled/*.dsh-also. These files need to
removed apart from symlinks created in /etc/systemd/system enable services are
enabled. If the service/timer is currently running, stop it too.

Use deb-systemd-helper and deb-systemd-invoke to achieve this.

Closes: #1835

Tests performed:

- Install a freedombox version older than 20.5. Upgrade to 20.5. Notice the
incorrect symlink
/etc/systemd/system/multi-user.target.wants/freedombox-setup-repositories.timer
and also the state file
/var/lib/systemd/deb-systemd-helper-enabled/freedombox-setup-repositories.timer.dsh-also
Then upgrade to a .deb packages built with the patch. The two files will be
removed. No extra messages are warnings are printed during package upgrade.

- Install a freedombox version older than 20.5. Upgrade to .deb packages built
with this patch. Notice the same results.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-24 15:45:01 -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>
v20.7
2020-04-20 18:39:06 -04:00
James Valleroy
7cc84f4331
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-20 18:12:00 -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
Fioddor Superconcentrado
fa4d9fe283 Clarifications: source directory within VM, and prompts marking where the commands must be executed (host or VM). Plus, some code decorations enabled (by providing languaje). 2020-04-20 16:14:17 +00: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>
v20.6.1
2020-04-11 09:57:07 -04:00
James Valleroy
178caf65fe
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-11 09:56: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
James Valleroy
a9adc13a56
debian: Add firmware-ath9k-htc to Recommends
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-09 17:35:21 -04: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>
v20.6
2020-04-06 20:53:29 -04:00
James Valleroy
30b4b67e7f
debian: Cleanup overrides for jsxc symlinks
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:52:44 -04:00
James Valleroy
b185ff8e37
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 20:40:11 -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
Joseph Nuthalapati
7ed64c03fc
vagrant: Skip upgrading freedombox dependencies
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-04-06 19:02:58 -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