1112 Commits

Author SHA1 Message Date
James Valleroy
04d14e276f
backups: Restore from exported archive
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-17 17:31:25 +05:30
James Valleroy
bd45de2915
backups: Add list of exported archives
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-17 17:31:15 +05:30
James Valleroy
ab9f961091
backups: Simplify export of backup archive files
- Allow selection of Root Filesystem or any removable drive.
- Export to FreedomBox-backups folder in selection location.
- Handle export location without / at the end

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-17 17:31:06 +05:30
Joseph Nuthalapati
36774c9f41
turbolinks: Reload page using JavaScript
Using the existing meta tag for refresh as a noscript fallback.

Fixes #1350

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-12 08:43:11 -04:00
Joseph Nuthalapati
8f88f0f6b4
mediawiki: Fix images throwing 403s
- Increment version number
- Functional test for uploading files

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-11 20:26:10 -04:00
Joseph Nuthalapati
d8356c1a61
backups: Add core API for full/apps backup
Not functional yet.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-11 12:13:39 -04:00
Joseph Nuthalapati
04287858e3
Trim the translation strings in Letsencrypt template where missing
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-11 09:56:16 -04:00
James Valleroy
ddc3dbac00
ejabberd: Cleanup config file upgrade
- Merge config upgrade into setup.
- Try upgrade even if ejabberd version cannot be determined.
- Ignore error from ejabberdctl which can happen if ejabberd is not running.
- Run yapf on modified files.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-03 21:55:21 -04:00
Hemanth Kumar Veeranki
fafd28e90a
Remove deprecated settings from already existing config files
Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-03 21:51:20 -04:00
James Valleroy
73bdd01b93
Add backups info to apps
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-02 21:48:26 -04:00
Joseph Nuthalapati
0023481d48
configuration: Fix parsing error in retrieving default app
- some minor refactoring
- optimized imports

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-30 15:23:51 +05:30
Joseph Nuthalapati
a309b28035
configuration: Use augeas to edit Apache files
Move the file editing code to actions/config since it must be executed by a
super user.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 20:50:14 -04:00
Joseph Nuthalapati
9a3af288fa
configuration: Option to set a default app for FreedomBox
Closes #1315

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 20:50:10 -04:00
James Valleroy
c733339719
udiskie: Import glib and udisks only inside methods
The module can be imported even before gir1.2-udisks-2.0 is installed.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 16:11:44 -04:00
Sunil Mohan Adapa
15345aeb47
udiskie: Show special message when no storage device available
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:58:03 -04:00
Sunil Mohan Adapa
4ca97fc872
udiskie: Remove internal networks warning
Since udiskie does not listen on any network ports, the message is not relevant.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:57:49 -04:00
Sunil Mohan Adapa
e420520e8e
udiskie: Also list read-only filesystems
In case the media contains a read-only copy of a backup and we need to restore
from it.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:57:37 -04:00
Sunil Mohan Adapa
cdf07a92b4
udiskie: Add eject functionality for a drive
When a block device with a filesystem is selected for ejecting, all the
filesystems on the drive to which the selected filesystem belongs will first be
unmounted. Finally the drive itself is ejected.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:57:24 -04:00
Sunil Mohan Adapa
1a11b4967a
udiskie: Remove the unused ejectable property
It is also being set incorrectly. It is not very useful because we should still
unmount filesystems even if the device is not ejectable.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:57:00 -04:00
Sunil Mohan Adapa
4184784988
storage: Fix parsing issues when mount point has spaces
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:56:51 -04:00
Sunil Mohan Adapa
5dc2ad1fa4
udiskie: Move udisks2 methods to separate module
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 15:56:36 -04:00
Joseph Nuthalapati
f762f57d1c
Add turbolinks
- Load scripts in the head with `defer` instead of at the end of the body
- Disable turbolinks for application shortcuts and manual download

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:22:52 -04:00
Hemanth Kumar Veeranki
f8a5db2bc0
Clarify description for radicale shared calendar/addressbook
Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-26 20:11:58 -04:00
Jayasuganthi
6fe172acc8
mediawiki: Enable short URLs
Fixes #1274

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-23 17:34:36 +05:30
James Valleroy
4f6ed92286
backups: Allow valid filenames as archive names
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-16 18:04:09 +05:30
James Valleroy
c852cd824f
backups: New app to manage borgbackup archives
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-16 18:03:55 +05:30
Joseph Nuthalapati
ba9af6ddff
firstboot: Prompt for secret during firstboot welcome
- A freshly installed FreedomBox can be hijacked by a third party and an admin
  account can be created which can be used to inject malware or simply take over
  the instance. Password protecting the firstboot step is a good way to avoid
  this. A secret will be displayed to the user as soon as the Plinth package
  is installed, which they have to enter during firstboot welcome step. Also,
  writing this to a file in plinth's home in case the user loses it.
- This protection is not applicable for images built by freedom-maker and for
  Amazon Machine Images.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-04 20:22:54 -04:00
Joseph Nuthalapati
b740a37a1e
users: Replace disabled with readonly for admin group checkbox
- Added validation logic in the backend to compensate

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-04 08:28:55 -04:00
Joseph Nuthalapati
a50b40ee56
Change get-group-users to a simpler implementation
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-04 08:28:51 -04:00
Sunil Mohan Adapa
35dbdf4777
udiskie: Use glib library for dbus interaction
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-02 19:00:36 -04:00
James Valleroy
08eeace30f
udiskie: New module for automatic mounting of removable media
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-02 19:00:32 -04:00
Joseph Nuthalapati
825db6ef15
users: Redirect to users list on successful user creation
- Closes #1316

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-01 13:01:57 -04:00
Hemanth Kumar Veeranki
881302ac02
Use logos instead of icons in the apps page
- Adjust the template so that it uses glyphicons for sys page and logos for the app page
- Add logos for missing apps (tor and sharing) and their licences

Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-30 09:40:09 -04:00
James Valleroy
4dc83f135a
users: Update Change Password menu for non-admin users
Don't show Create User menu item to non-admin users. Previously this
was fixed for the Edit User page, and this fixes it also for the
Change Password page.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-26 21:41:34 -04:00
Joseph Nuthalapati
15c7202a6b
users: Don't show Create User form to non-admin users
For non-admin users, the subsubmenu containing both Edit and Create forms is
shown. Removed the subsubmenu so that only the update form is shown.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-26 21:31:55 -04:00
Hemanth Kumar Veeranki
b9963a45cd
Restrict removal of last admin user
- Don't allow disabling the only available admin account.
- Don't allow deletion of the only available admin account.
- Don't allow removing admin privileges of the only available admin account.

Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-06-21 20:09:02 +05:30
Hemanth Kumar Veeranki
b605c9da8a
Add a way to refine shortcuts
- Add a field `allowed_groups` to shortcuts, which will contain groups which can
  access a particular app
- When a user is logged in, only return those shortcuts to the front page if the
  user is allowed to access them. This check is done based on the allowed_groups
  field of the shortcut
- Add allowed_groups for shortcuts of all apps with group-restricted access

Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-06-21 18:53:45 +05:30
Joseph Nuthalapati
913d71e9bc
firewall: Display information that a service is internal only
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-21 18:01:53 +05:30
Joseph Nuthalapati
3940868f21
first-setup: Automatically expand root partition
- Show expansion option in the UI only if the partition expansion failed during
  first setup.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-18 19:37:25 -04:00
Michael Pimmer
db5a66c1d0
Remove unused imports and variables
Signed-off-by: Michael Pimmer <info@fonfon.at>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-18 19:27:40 -04:00
Hemanth Kumar Veeranki
85dd471c35
Enable image uploads in mediawiki at startup
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-06-18 20:47:58 +05:30
Sunil Mohan Adapa
1cf80f83ba
diagnostics: Remove unnecessary content sizing
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:24:17 +05:30
Sunil Mohan Adapa
e43df173ca
first_boot: Remove unnecessary content sizing
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:24:07 +05:30
Sunil Mohan Adapa
b162a2bc04
firewall: Resize the info table to full width
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:23:38 +05:30
Sunil Mohan Adapa
ee80d77be5
help: Remove the duplicate index URL and menu item
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:23:28 +05:30
Sunil Mohan Adapa
cece5a003d
help: Center the FreedomBox logo on about page
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:23:16 +05:30
Sunil Mohan Adapa
c824bfe3ce
tor: Increase the size of the status tables
- Full size for hidden service table.
- Half size for ports table.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:23:07 +05:30
Sunil Mohan Adapa
87d32d9c64
storage: Remove unnecessary column sizing
- Convert a div to a paragraph to get proper margins.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:22:58 +05:30
Sunil Mohan Adapa
ebd10c7d65
sso: Adjust size of login form
Now that we have less space for the content area.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:22:47 +05:30
Sunil Mohan Adapa
35e49521b9
names: Remove unnecessary column sizing
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:22:37 +05:30