4185 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
0e2315486d
tests: Read functional tests conf file without assuming CWD
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:07 -04:00
Sunil Mohan Adapa
b66b15591e
tests: Mark functional tests with functional mark
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:04 -04:00
Sunil Mohan Adapa
895b5f1fa8
functional_tests: Reorder tests to disable apps after tests
To reduce memory/CPU requirement on the VM running the services for functional
tests. The following items are kept enabled as these are enabled by default in
FreedomBox.:

- NTP daemon

- Restricted console login

- Unattended upgrades

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-09 21:20:42 -05:00
Sunil Mohan Adapa
37ce0f5620
templates: Minor styling change
Remove an empty paragraph between clients button and submenu tabs. It does not
add a gap and adding a gap should instead be done using CSS.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:51 -08:00
Sunil Mohan Adapa
f21ea2042d
ikiwiki: Consistent styling for delete warning page
- Do not use subsubmenu styling for delete confirmation page. This will make it
  consistent with the rest of the UI where confirmation pages are shown. Also
  showing a confirmation under a tab is confusing.

- Undo incorrect styling changes.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:48 -08:00
Sunil Mohan Adapa
f81cd5c799
dynamicdns: Simplify template inheritance
- Fix issue with form messages not showing up.

- Remove unnecessary duplication of code from base template.

- Minor docstring styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:45 -08:00
Sunil Mohan Adapa
b3bbfcda3d
pagekite: Change the template section title
Since it is no longer a paragraph but title, no need for colon. Reuse existing
translated message instead of using 'Current Status'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:42 -08:00
Sunil Mohan Adapa
8a246bf15c
pagekite: Rename base template file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:38 -08:00
Joseph Nuthalapati
ec7ae92d89
ikiwiki: Move subsubmenu below description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:35 -08:00
Joseph Nuthalapati
00eb30861c
Include clients.html in service-subsubmenu.html
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:32 -08:00
Joseph Nuthalapati
9ccdd26e3b
upgrades: Move subsubmenu below description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:29 -08:00
Joseph Nuthalapati
a4e01eb629
pagekite: Bring subsubmenu below description. Remove About section.
- Fixed broken functional tests
- Pagekite index page directly takes to configuration

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:26 -08:00
Joseph Nuthalapati
1eca9ffd2d
subsubmenu: Make description a customizable block
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:22 -08:00
Joseph Nuthalapati
ccc4bd120b
names: Add description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:19 -08:00
Joseph Nuthalapati
be46542f87
firewall: Change "Current Status:" from p to h3
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:16 -08:00
Joseph Nuthalapati
0a51654793
dynamicdns: Move subsubmenu below description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:13 -08:00
Joseph Nuthalapati
4b21ffb16b
dynamicdns: Break up dynamicdns.py into forms.py and views.py
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:10 -08:00
James Valleroy
8b74f65f38
vagrant: Rearrange steps of provision script
- Disable automatic upgrades earlier in the script. This makes it more
  likely that unattended-upgrades will be disabled before it has a
  chance to run.

- Move apt commands to the end. In the event that unattended-upgrades
  is running anyway, these command can fail and cause further steps to
  be skipped.

Closes #1506

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-06 09:58:57 -08:00
advocatux
8d2923b8dd
Translated using Weblate (Spanish)
Currently translated at 100.0% (1027 of 1027 strings)
2019-03-05 16:57:42 +01:00
Petter Reinholdtsen
5d0dd810da
Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.8% (1025 of 1027 strings)
2019-03-05 16:57:41 +01:00
Doma Gergő
f4d0584a0d
Translated using Weblate (Hungarian)
Currently translated at 100.0% (1027 of 1027 strings)
2019-03-05 16:57:40 +01:00
Pavel Borecki
28543e44ca
Translated using Weblate (Czech)
Currently translated at 100.0% (1027 of 1027 strings)
2019-03-05 16:57:39 +01:00
James Valleroy
c3cf60bcb6
Release v19.2 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.2
2019-03-02 14:46:30 -05:00
James Valleroy
8ae99faddc
doc: Fetch manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-02 14:43:51 -05:00
James Valleroy
af33d86166
locale: Update translations strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-02 13:25:58 -05:00
Joseph Nuthalapati
b18ac14377
snapshot: Fix failing functional test
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-02 10:11:33 -08:00
Sunil Mohan Adapa
bd20b6570b
ttrss: Implement upgrade from 17.4 to 18.12
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 23:50:45 -05:00
Sunil Mohan Adapa
0dea9e80f3
ttrss: Make setup process reusable
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 23:50:42 -05:00
Sunil Mohan Adapa
2f0bc29239
firewalld: Implement upgrading from 0.4.x to 0.6.x
- firewalld is always on an active. Running setup is not a problem.

- Installing new configuration and applying changes on top is more reliable.
  Changes to be done are not configuration settings but FreedomBox defaults.

Fixes: #1367.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 23:50:40 -05:00
Sunil Mohan Adapa
ebca76b236
utils: Introduce abstraction over distutils comparison of versions
In future, if the semantics need to better align with Debian's version
comparison, we can implement that easily.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 23:50:37 -05:00
Sunil Mohan Adapa
3d57feac24
setup: Pass better data structure for force upgrade operation
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 23:50:34 -05:00
James Valleroy
d4fa87bbf1
users: When ssh used in tests, add users to admin group
This allows the tests to pass even if logins are restricted by
security module.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 20:09:43 -08:00
James Valleroy
7ee48da299
security: Migrate access config to new file
Fixes #1504

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 20:09:40 -08:00
Sunil Mohan Adapa
f524219387
openvpn: Work around firewalld bug 919517
Instead of using a wildcard tun+ interface, use a fixed number of tun
interfaces and hope OpenVPN will use one of them.

Fixes: #1438.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 22:01:09 -05:00
Sunil Mohan Adapa
b8d4b55c0a
openvpn: Make frontpage shortcut appear after an upgrade
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 18:13:39 -05:00
Sunil Mohan Adapa
117c3d7507
openvpn: Fix issues with upgrade easy-rsa 2 to 3 migration
- Set permissions properly as if they are created newly.

- Ensure that configuration file is rewritten so that new certificate paths are
  used.

- Run easyrsa init-pki to ensure that configuration file is present.

- Create necessary empty directories as per new structure.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 18:13:37 -05:00
Joseph Nuthalapati
0457f34c21
openvpn: Increment version number for easy-rsa 3 migration
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 18:13:34 -05:00
Joseph Nuthalapati
544c317cd2
openvpn: Migration from easy-rsa 2 to 3 for existing installations
- Change file and directory structure from easy-rsa 2's flat format to easy-rsa
  3's format.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 18:13:27 -05:00
Sunil Mohan Adapa
2aef91b187
config: Don't pass configuration file argument to action
Due to security risk that a compromised Plinth process will give adversary the
ability to write to any file on the system.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 13:23:04 -08:00
Joseph Nuthalapati
d1d3eae3db
config: Reset home page setting in freedombox.conf during migration
While moving the home page configuration to a new file, also reset the home page
path in freedombox.conf to its default setting of /plinth.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 13:22:58 -08:00
Joseph Nuthalapati
530423d490
config: Revert changes in freedombox.conf to avoid conffile prompt
The changes made to freedombox.conf in moving the apache homepage configuration
to an external file freedombox-apache-homepage.conf will cause a conffile prompt
when upgrading to freedombox 19.2. Reverting changes in freedombox.conf to avoid
this.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 13:22:32 -08:00
James Valleroy
7c01585f2b
debian/copyright: Fix filename for tahoe-lafs logo
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-01 06:19:38 -05:00
Sunil Mohan Adapa
44dd3c0ec1
LICENSES: Remove files that are same license as rest of the source
No need to list them explicitly. They were added while the project was under the
AGPL-3+ license.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 02:00:17 -08:00
Sunil Mohan Adapa
4fa1e2ab1b
static: Remove unused files
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 02:00:06 -08:00
Sunil Mohan Adapa
0a1a0cd1b4
debian/copyright: Update copyright for logos
Robert Martinez the original author transferred all copyrights for the initial
logo work to the FreedomBox foundation. The icons are derivatives of this work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:58:59 -08:00
Sunil Mohan Adapa
06d1b167bb
debian/copyright: Add license text for CC-BY-SA-3.0
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:58:35 -08:00
Sunil Mohan Adapa
1e48a64ddf
debian/copyright: Add license text for GPL-2 and GPL-3
They are different from GPL-2+ and GPL-3+.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:57:59 -08:00
Sunil Mohan Adapa
f5c85471ee
debian/copyright: Add license text for public-domain
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:57:32 -08:00
Sunil Mohan Adapa
a4fdf3f703
debian/copyright: Add full text for AGPL-3+
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:57:29 -08:00
Sunil Mohan Adapa
130102e1f4
debian/copyright: Minor fixes
- Update copyright year for fonts based on information embedded in .ttf file.

- Remove incorrect copyright text.

- Each session should have only one copyright line.

- Fix syntax for multiple licenses.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-01 01:57:07 -08:00