877 Commits

Author SHA1 Message Date
James Valleroy
5ddf101fbd
storage: Add TODO to avoid locale issues 2017-10-05 12:54:46 -04:00
Johannes Keyser
58c15e6215
storage: Fix issue with locales that use other decimal separators
- Convert commas to periods
- Convert arabic decimal operator instead to period

Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-05 12:54:36 -04:00
Rahul De
382e2be7f9
Add group for Deluge
Signed-off-by: Rahul De <rahul080327@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-10-05 10:44:14 +05:30
Rahul De
a22a01a76f Generic framework for user group per application
- Closes #928
- Adds shell and python APIs adding/removing LDAP groups

Signed-off-by: Rahul De <rahul080327@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-10-05 10:43:50 +05:30
Sunil Mohan Adapa
d6f79b96be
Move Avahi files from freedombox-setup
Avahi daemon is being managed in Plinth, so it makes sense for Plinth to be
providing the service files. Service files can be managed so that when service
is not available, it is not advertised using Avahi.

Install service files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Signed-off-by: Prachi Srivastava <prachi@swecha.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-04 19:19:11 -04:00
Sunil Mohan Adapa
b8adb19e8b
Fix some Django deprecations
- Use simple_tag() instead of assignment_tag().  Assignments with simple_tag()
  works just like before.

- When loading urls for application, specify application name during inclusion.

- Use the reverse() method from django.urls which as moved from
  django.core.urlresolvers.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-04 18:32:41 -04:00
Prachi Srivastava
667282bae9
Fix front page label names
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-03 20:52:47 -04:00
Sunil Mohan Adapa
f1459c066f
networks: Move initial connection setup to Plinth
- For a user who installed using FreedomBox disk image, when Plinth upgrades to
  a release containing this change, don't run network setup. This is ensured by
  not incrementing the version number of the networks module.

- For a user who installed using freedombox-setup Debian package, when Plinth
  upgrades to a release containing this change, don't run network setup. This is
  ensured by not incrementing the version number of the networks module.

- For a user who installed using freedombox-setup Debian package, when Plinth is
  run for the first time, don't run network setup. This is ensured by checking
  for the file /var/lib/freedombox/is-freedombox-disk-image which will not
  exist.

- For a user who installed using FreedomBox disk image, when Plinth runs for the
  first time, setup process executes and triggers the script due networks module
  being an essential module.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-10-03 18:40:51 +05:30
Johannes Keyser
9de6edcfe6
i18n, msgfmt: Flag percent symbol in ugettext, fixes issue #1039
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-10-02 05:21:54 -04:00
Johannes Keyser
f5f0f7e791
matrix-synapse: Option public registrations fixed and simplified.
* Fixing wrong function calls leading to error 500.
* Merging enable/disabling/status into single action, to improve
  handling in cli, and reduce code duplication.
* Fixing order of restart and enabling of public registration option.
* Minor, cosmetic fixes of code and user-facing strings.
* Overall code design now almost identical to Ejabberd service page.

Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-10-01 22:59:17 +02:00
Hemanth Kumar Veeranki
a1014946d2
matrix-synapse: feature to enable/disable public registrations
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-10-01 22:59:17 +02:00
Johannes Keyser
f628eb2cc2
ejabberd: Use Let's Encrypt certificate, also across renewals.
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-01 10:48:39 -04:00
abilashr
81fde34254
Rename Disks and Snapshots in Configuration tab
- Rename Disks to Storage
- Rename Snapshot to Storage Snapshots

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-27 09:39:34 +05:30
Johannes Keyser
063c0fd7ce
Users: Allow non-admin users to log out. Fixes issue #999.
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-19 18:06:07 +05:30
Joseph Nuthalpati
fe46ddb63d
Correct LAFS to Tahoe-LAFS in apps page 2017-09-14 12:00:48 +05:30
Prachi Srivastava
fbe08443f4
Refactor functions for api
- Change url to use hyphen instead of camelCase
- Refactor functions to be immutable

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-09-08 14:56:30 +05:30
Prachi Srivastava
c0fb2abf46 Add api module for android app
- Add api end-point to get enabled-services in plinth
- Add api end-point to get acess info for plinth
2017-09-08 14:46:38 +05:30
Sunil Mohan Adapa
9369f72c4f
sso: Add dependency on apache module
This ensures that Apache is fully setup before setting up mod-auth-pubtkt.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:04:15 -04:00
Sunil Mohan Adapa
602ea6cf16
apache: New module to manage Apache configuration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:04:07 -04:00
Sunil Mohan Adapa
07c062aef3
ssh: New application to manage SSH server
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:03:58 -04:00
Sunil Mohan Adapa
2e55acb465
firewall: Move remaining setup steps to Plinth
There is no need to restart firewalld after the setup steps run.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-09-01 20:03:51 -04:00
Johannes Keyser
3ba672f28a
disks: enabled caching for check-if-admin during check for low space
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-31 16:10:04 +02:00
Sunil Mohan Adapa
14f5a27950
disks: Minor changes for styling and performance
- Enable cached results when checking if the user is an admin. Cached results
  are only invalid when a user newly get admin permission or when an existing
  user loose admin permission. Here the consequence of showing wrong results is
  minor.

- Use all small case for variable names.

- When we use a utility method from Plinth, we can trust it to give expected
  values. Otherwise, we should fix the method to be more robust.

- Don't recommend the user to go to disks configuration page as there is not
  much there to do to free up space. The action might be removing apps, deleting
  downloaded content (downloaded via torrents) etc.

- df is unlikely to return '-1' for size of disk.

- Avoid using -1 as error value.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:49:46 +05:30
Johannes Keyser
a47f33d7a4
disks: warning about low space only for users in admin group
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:49:08 +05:30
Johannes Keyser
3c4c770404
disks: add low disk space warning to system and disks page
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:48:23 +05:30
Johannes Keyser
82475522f9
disks: Add low disk space warning (Closes: #985)
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 15:47:15 +05:30
Joseph Nuthalpati
32d17e6c93
sso: Safety check to make sure auth_pubtkt is enabled
Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-31 14:34:11 +05:30
Prachi
c8eb714562
Separate out the short description and app name
Signed-off-by: Prachi <prachi@swecha.net>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-08-21 11:17:08 +05:30
Joseph Nuthalpati
db479a7ae9
SSO: Use Login and Logout view classes instead of methods
- Closes #965

Signed-off-by: Joseph Nuthalpati <njoseph@thoughtworks.com>

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-08-16 19:43:57 -04:00
Hemanth Kumar Veeranki
3de4c5639f
Remove help from navbar before firstboot complete
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-13 01:39:24 +02:00
Hemanth Kumar Veeranki
29cc95bbdb
Make help accessible for logged-in non-admin users
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-11 23:54:35 +02:00
James Valleroy
9fabb7b903
diaspora: Don't enable service until domain name is set
- This avoids an issue where it would try to enable the apache conf
possibly before it is generated.

- Added an explicit enable statement since it was missing.

Reviewed-by: Joseph Nuthalpati <njoseph@thoughtworks.com>
2017-08-10 11:47:45 +05:30
Johannes Keyser
a1435dd926 Merge pull request #962 from JoKeyser/fixIssue699
ejabberd, ikiwiki, ttrss: user login descriptions, fixes #699
2017-08-06 15:28:20 +00:00
Johannes Keyser
caae04d549
ejabberd, ikiwiki, ttrss: user login descriptions, fixes #699 2017-08-05 20:05:09 +02:00
Hemanth Kumar Veeranki
217ef97a6f
Add services information to the domains configured in dynamicdns
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-08-05 13:29:47 -04:00
Andrey Skvortsov
b6e6fdd134
radicale: Update link to documentation
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-08-01 11:23:21 +05:30
James Valleroy
3c3d280792
dynamicdns: code style fixes 2017-07-30 12:07:13 -04:00
Hemanth Kumar Veeranki
1e19508b95
Add/remove domain name in names module when domain name is configured in dynamicdns module
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-07-30 12:01:57 -04:00
Johannes Keyser
d8849114ba
letsencrypt: delete button also disables certificate renewal mngmt 2017-07-30 09:18:00 -04:00
James Valleroy
b8255ca46b
diaspora: Avoid incorrect 'setting unchanged' message 2017-07-29 15:31:41 -04:00
Joseph Nuthalpati
4abb7cd885
Diaspora: Checkbox to enable or disable user registrations 2017-07-29 12:40:44 -04:00
James Valleroy
3e38a3e3f1
diaspora: fix test file header 2017-07-29 10:50:06 -04:00
Joseph Nuthalpati
f3860b197a
Diaspora: Generate apache configuration at setup
- Deleted static configuration file
- Generating configuration with the domain name set.
2017-07-29 10:45:57 -04:00
James Valleroy
276dac2df2
security: minor style fixes 2017-07-29 09:49:14 -04:00
nsaikiran
a8a5da996e
[#759] Add fail2ban to Plinth UI
Run sudo-required action via actions.superuser_run

Actions related to services those require `sudo` permissions need to
be executed via actions.superuser_run.

NOTE:
If plinth service is started via `sudo ./run --debug` (in dev mode)
all actions will be executed silently. But plinth in user machines
won't be executed with sudo permissions.
2017-07-29 09:42:31 -04:00
Johannes Keyser
4bd6929d69
power: warn if a package manager is running before shutdown/restart
- red colors for warning about running package manager

- red buttons to indicate danger if installation/upgrade runs
2017-07-22 10:07:33 -04:00
James Valleroy
3ea5868ec1
pylint and spelling fixes 2017-07-19 21:47:07 -04:00
Johannes Keyser
1069f84154
letsencrypt: Add option to let Plinth "manage" certbot's renewal hooks
- add action commands for managing and running hooks

- adding template, view and url for managing and running hooks

- disable Plinth hook management on domain change
2017-07-19 21:47:00 -04:00
Joseph Nuthalpati
ff1a2537cd
diaspora: Fixed a left-over refactoring
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 15:51:39 +05:30
bharatak
ee43db0e1b
letsencrypt: Make Let's Encrypt an essential module
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 12:55:01 +05:30