3704 Commits

Author SHA1 Message Date
James Valleroy
0dfa3cc9de
Release v0.41.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.41.0
2018-10-22 19:49:06 -04:00
James Valleroy
f3897781ac
Fetch latest manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:48:19 -04:00
James Valleroy
a73310c603
Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:28:38 -04:00
Joseph Nuthalapati
c33b192f71
backups: Don't rely on disk labels during export/restore
Disk labels are unreliable. They may not exist. There are not unique and two
disks in the system may have the same label. Instead use the device path of the
disk/partition.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:26:22 -04:00
Joseph Nuthalapati
b29ccfc060
storage: Minor styling with urlencode call in template
For consistency.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:26:20 -04:00
Joseph Nuthalapati
d5860ac179
backups: Fix issue with showing exports from disks without labels
When a disk does not have a label, its device path is used. This contains a '/'
which by default is not encoded by 'urlencode' filter in Django templates. This
leads to the expected URL not matching the regex in urls.py. Fix this by
ensuring that '/' is also encoded by 'urlencode'.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:26:17 -04:00
rafael
41b8c16a68 Translated using Weblate (Spanish)
Currently translated at 99.1% (1003 of 1012 strings)
2018-10-23 00:24:43 +02:00
James Valleroy
edcf4a5619
backups: Handle permission error during chown
This happens on FAT file systems, where chown operation is not
possible.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 18:19:02 -04:00
Joseph Nuthalapati
6be6b847fd
backups: Make plinth the owner of the backup archives
Changing the ownership of the backup archives from "root" to "plinth" fixes the
permission errors when downloading backup archives.

Fixes #1402

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 18:17:01 -04:00
James Valleroy
cf6d0aa938
functional_tests: When creating backup, scroll window to top
Ensures that the checkbox for selected app can be scrolled into view.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:58 -04:00
James Valleroy
92d128a4b3
deluge: Handle prompt to change default password
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:49 -04:00
Joseph Nuthalapati
4297983ff1
storage: Enable backup/restore (no data)
There might be data to backup in future if we allow configuration. Currently, it
is just an assurance to the user that there is no data to backup.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:41 -04:00
Joseph Nuthalapati
b22c12b912
power: Enable backup/restore (no data)
There might be data to backup in future if we allow configuration. Currently, it
is just an assurance to the user that there is no data to backup.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:37 -04:00
Joseph Nuthalapati
f362ce937e
names: Enable backup/restore (no data)
There might be data to backup in future if we allow customizing domain
configuration. Currently, it is just an assurance to the user that there is no
data to backup.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:21 -04:00
Joseph Nuthalapati
1fb30ba55f
diagnostics: Enable backup/restore (no data)
There might be data to backup in future if we allow configuration. Currently, it
is just an assurance to the user that there is no data to backup.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:16 -04:00
Joseph Nuthalapati
ce318350a9
firewall: Enable backup/restore (no data)
There might be data to backup in future if we allow adding custom rules or
provide features such as blocking untrusted devices at home. Currently, it is
just an assurance to the user that there is no data to backup.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:09 -04:00
Joseph Nuthalapati
1eacbf1be7
ssh: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:05 -04:00
Joseph Nuthalapati
6c565f8678
deluge: Add missing backups tag in functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:00 -04:00
Joseph Nuthalapati
03a6cf25e5
snapshot: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:56 -04:00
Joseph Nuthalapati
316d765629
backups: Implement app hooks
Each application will be able to implement backup_pre, backup_post, restore_pre
and restore_post hooks that get called before/after backup/restore
appropriately. This is to handle any edge cases that backup manifest mechanism
does not handle.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:50 -04:00
Joseph Nuthalapati
2c1372c26d
snapshot: Add functional tests for setting configuration
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:45 -04:00
Joseph Nuthalapati
a5d66a1362
snapshot: Fix issue with setting configuration
snapper set-config expects each key-value pair to be passed as a separate
argument separated by '='.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:37 -04:00
Joseph Nuthalapati
327741bc22
security: Enable backup/restore
Currently only the restricted login setting is backed up and restored. Fail2Ban
needs ability to backup and restore state of services.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:30 -04:00
Joseph Nuthalapati
b04ac3c76c
security: Add functional tests for restricted logins
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:26 -04:00
Joseph Nuthalapati
03e19b0bdc
bind: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:22 -04:00
Joseph Nuthalapati
a043063ee2
bind: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:17 -04:00
Joseph Nuthalapati
6cfd5774f0
backups: Enable backup/restore (no data currently)
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:11 -04:00
Joseph Nuthalapati
02307f4d10
avahi: Enable backup/restore (no data)
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:05 -04:00
Joseph Nuthalapati
73bfcc41f9
deluge: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:17:59 -04:00
Joseph Nuthalapati
4c7781a34a
deluge: Add functional test for uploading a torrent
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:17:52 -04:00
Joseph Nuthalapati
996e5932a2
tests: More accurately compute waited time
If test function takes significant time, this will ensure that we don't wait
more the requested wait time.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:17:38 -04:00
Joseph Nuthalapati
962fb0d678
datetime: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-15 16:12:49 -04:00
Joseph Nuthalapati
f16fe404f2
datetime: Add functional test for setting time zone
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-15 16:12:41 -04:00
Michael Pimmer
d01c36a8f5
Backups: bugfix for downloading extracted archive files
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-15 15:10:02 -04:00
Joseph Nuthalapati
9367f9bcaf
vagrant: Increase number of CPUs to 2
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-14 15:16:18 -04:00
Joseph Nuthalapati
7c1197ba45
vagrant: Increase memory to 2GiB
Closes #1397

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-14 15:16:14 -04:00
James Valleroy
9b8251e16c
debian: Add Russian translation of debconf template
Closes: #910848

Thanks to Lev Lamberov for the patch.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-14 15:04:19 -04:00
ButterflyOfFire
9854c30af2
Translated using Weblate (French)
Currently translated at 77.8% (788 of 1012 strings)
2018-10-11 11:26:26 +02:00
Allan Nordhøy
f3a81fd70e
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1012 of 1012 strings)
2018-10-10 19:32:14 +02:00
James Valleroy
310f66c936
Release v0.40.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.40.0
2018-10-09 06:02:09 -04:00
Pavel Borecki
8ce4515d9c Translated using Weblate (Czech)
Currently translated at 100.0% (1012 of 1012 strings)
2018-10-09 12:01:23 +02:00
Joseph Nuthalapati
faf5f5bc6c
customization: Don't install files in /var/www
- Use the directory for service custom static files only if it exists.
- This fixes issue with lintian complaining of installing files in /var/www.

Closes #1399

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-10-09 11:30:30 +05:30
James Valleroy
5e13ba0424
debian: Use 'setup.py test' to run tests
Since pytest is a build-depend, pybuild uses it by default.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 23:03:24 -04:00
James Valleroy
7f5749927f
Update changelog
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 22:21:36 -04:00
James Valleroy
8ae6b5d530
Fetch latest manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 21:55:18 -04:00
James Valleroy
8303a98dd9
Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 21:20:59 -04:00
Joseph Nuthalapati
1307e474da
customization: Show custom shortcuts on frontpage
Closes #1379

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 20:30:29 -04:00
Joseph Nuthalapati
5e06017e5c
customization: Serve custom shortcuts through the REST API
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 20:30:24 -04:00
Joseph Nuthalapati
e1d3497886
customization: Create customization path in /var/www
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 20:30:20 -04:00
Joseph Nuthalapati
9721eeac2b
customization: Serve static files from customization directory
- Static files are directly served by the CherryPy web server.
- .gitignore file placed as a placeholder to be able to commit the directory

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 20:30:14 -04:00