695 Commits

Author SHA1 Message Date
James Valleroy
9da23fa560
firstboot: Only add steps from modules if they have completed setup 2016-12-04 15:24:54 -05:00
James Valleroy
0fdc0ffe52
users: Fix marking first boot step as done 2016-12-04 15:24:51 -05:00
Sunil Mohan Adapa
f457a0bdd3
first_boot: Fix various issues and refactor
- Fix major regression so that steps can submitted multiple times in
  case of errors.

- Don't serve the welcome page (and other pages) only once.  Show it
  until action is an taken.  This does not apply to the final step.

- Eliminate all coupling of one first boot step on another.

- Move first boot helper methods to __init__.py instead of middleware as
  it is more generic than middleware.

- Implement caching the first boot state to avoid an SQL query on every
  page load.  The down side is that if first boot state is modified in
  the backend DB outside Plinth, Plinth will need to be restarted to
  catch the modified value.

- Mark some methods as private.

- Refactor middleware code for slightly more simplicity.

- Don't show sidebar in pagekite first boot step.  Set width like other
  pages.
2016-12-04 15:24:48 -05:00
Sunil Mohan Adapa
6cce89ed68
users: Update first boot step submit button text
'Box it up!' is confusing is and no longer relavent as there are more
steps after that step.
2016-12-04 15:24:45 -05:00
Sunil Mohan Adapa
b347033f42
pagekite: Ensure / at the end of URLs 2016-12-04 15:24:42 -05:00
Sunil Mohan Adapa
e09434b998
pagekite: Fix first boot to use requests module
The intent is to use the requests module and make HTTP requests instead
of the Django requests.  This is probably a regression and this step
does not work without the change.
2016-12-04 15:24:39 -05:00
Sunil Mohan Adapa
56686b7148
firstboot: Rename views/urls to be non-numeric 2016-12-04 15:24:36 -05:00
Sunil Mohan Adapa
c37aa0fbd5
firstboot: Indentation & styling fixes
pycodestyle version used is 2.1.0 with default arguments.
2016-12-04 15:24:31 -05:00
mridulnagpal
a2d4719685
user delete fix 2016-12-04 14:04:44 -05:00
James Valleroy
0a3a68aee7
firewall: Minor changes to appearance 2016-12-04 13:45:34 -05:00
James Valleroy
b234d0e1b3
Ensure that services are registered when modules complete setup 2016-12-04 13:45:31 -05:00
James Valleroy
5f1c72d647
tor: Only register service if module setup is complete 2016-12-04 13:45:29 -05:00
mridulnagpal
941259df1e
Firewall updated 2016-12-04 13:45:26 -05:00
mridulnagpal
1eedad907e
Firewall UI 2016-12-04 13:45:21 -05:00
James Valleroy
61ff4190d5
letsencrypt: Mark module as non-essential
This avoids making the certbot package a dependency for plinth.
2016-11-27 20:07:25 -05:00
James Valleroy
5ba9f2824a
minetest: Bump module version
This is to ensure that new managed_packages will be installed.
2016-11-25 12:44:33 -05:00
mridulnagpal
258b788bc2
minetest: Add mods packages to be installed with server 2016-11-25 12:43:28 -05:00
James Valleroy
69332a903d
Minor changes for frontpage configure button
Remove unneeded gettext around configure URLs.

Remove module-level variables for configure URLs. Just use it directly
in add_shortcut().

Use reverse lookup for configure URLs.

Check that configure_url is set before displaying.

Change appearance of Configure link to a button.
2016-11-21 19:13:23 -05:00
mridulnagpal
8f147e4c7f
frontpage: Show Configure button in service details
Only show when user is logged in.
2016-11-21 12:22:01 -05:00
James Valleroy
9ca42fd271
Fix pylint errors
Update changelog
2016-11-17 12:14:23 -05:00
pk13055
d328a112cd
Status block enabled. 2016-11-17 12:14:19 -05:00
James Valleroy
b297435161
Require login to show JSXC shortcut on frontpage
Update changelog
2016-11-15 19:53:49 -05:00
mridulnagpal
fbe40f17b2
apps requiring login don't show up on frontpage unless logged in 2016-11-15 19:50:58 -05:00
Sunil Mohan Adapa
7e4af695ce
letsencrypt: I18n and minor fixes
- Fix indentation from a recent change.

- Internationalize 'no domains configured' message.

- Expand the message as per orignal pull request.
2016-11-14 21:38:27 -05:00
mridulnagpal
14b65ae456
letsencrypt: Improve display when no domains are configured
Show better message, and hide diagnostics button.
2016-11-07 19:53:46 -05:00
James Valleroy
cf0e8219af
Use new setup state in template tag 2016-11-03 22:32:17 -04:00
Hemanth Kumar Veeranki
6011a7adfa
Made Suggested Changes 2016-11-03 22:06:08 -04:00
Hemanth Kumar Veeranki
0290f68ae6
Removed redirection for login and help urls
Changed the redirection in state0 template
2016-11-03 22:06:05 -04:00
Hemanth Kumar Veeranki
0332d4489e
Added code for modules to register for first_boot #529 2016-11-03 22:06:00 -04:00
James Valleroy
3fa243ef5b
Cleanup hostname change fix and clarify log message 2016-11-02 22:08:33 -04:00
mridulnagpal
063190a00c
Set current domainname again after hostname change 2016-11-02 21:49:35 -04:00
James Valleroy
b7293e8d98
xmpp: Adjust message for domain not set 2016-10-28 12:55:24 -04:00
mridulnagpal
fd4959da0c
xmpp-domain-set 2016-10-28 12:16:13 -04:00
Sunil Mohan Adapa
5c75eb9649
dynamicdns: Allow reading status as non-root
Recently dynamic DNS module was fixed to use root ownership and limited
permissions for configuration and status files to avoid other users
reading dynmaic DNS account details.  This caused a regression when
Plinth is being run as non-root user.  This patch runs the commands to
read the current configuration as root user.
2016-10-17 11:49:45 -04:00
Sunil Mohan Adapa
4db5a35ce0
repro: Open up RTP ports
- RTP ports used for voice and video communication can span a wide range
  of ports.  Some servers seem to restrict the range.  However, repro
  does not seem to do that.  So, open up the full range.
2016-10-01 08:19:57 -04:00
Sunil Mohan Adapa
7a80e04ddd
repro: Use firewalld provided SIP services
Now that firewalld has service definitions for SIP and SIP over
TLS/DTLS use them instead of custom service definitions.
2016-10-01 08:19:51 -04:00
Sunil Mohan Adapa
dce51fd6d7
networks: Support configuring IPv6 networks
- Very similar to configuration of IPv4 networks.

- Supports 'auto', 'dhcp', 'manual' and 'ignored' modes as supported by
  network manager.  'shared' mode is not yet implemented by network
  manager.
2016-10-01 07:09:03 -04:00
James Valleroy
758234de7b
ikiwiki: Add help text about name restriction 2016-09-21 12:08:29 -04:00
Hemanth Kumar Veeranki
68046b638b
ikiwiki: Allow only alphanumerics in wiki/blog name 2016-09-21 12:02:23 -04:00
James Valleroy
51386bfe37
xmpp: Bump module version number
This will allow existing installs to be updated for jsxc.
2016-09-19 19:51:29 -04:00
Sunil Mohan Adapa
305cc3218d
xmpp: Replace jwchat with jsxc
- Update action to not configure jwchat anymore.

- Update action to not disable jwchat apache configuration.  Since the
  package is no longer installed, this could cause failures.

- Update action to no refer to jwchat in comments.

- Update jwchat-plinth Apache configuration to not include jwchat
  anymore.  Keep this file name for now instead of renaming it to
  jsxc-plinth as this would introduce additional complexity with little
  benefit.

- Install package libjs-jsxc instead of jwchat during xmpp setup.

- Create jsxc front page shortcut instead of for jwchat.

- Perform diagnostics on /http-bind/ URL needed for jwchat instead of
  /jwchat.

- Update links that launch XMPP web client.
2016-09-19 19:51:26 -04:00
Sunil Mohan Adapa
e57aa2ae85
xmpp: Add a view to serve JSXC embed page
This is a publicly available view since people should be able to login
even without access to Plinth interface.  Also avoid double login.
There should be no security risk in doing this.
2016-09-19 19:51:20 -04:00
Sunil Mohan Adapa
08068e60fc
xmpp: Introduce simple page to embed JSXC
Create a simple page based on example provided by Javascript XMPP Client
to embed it.
2016-09-19 19:51:13 -04:00
Sunil Mohan Adapa
26a724b773
networks: Add batctl as dependency
This will be removed from freedombox-setup depedency list.
2016-09-17 14:03:58 -04:00
Sunil Mohan Adapa
8f179e0d9f
Remove trialing whitespaces and untabify 2016-09-11 13:15:02 -04:00
Sunil Mohan Adapa
ff0d117a89
Readjust the responsive widths of various tables
Most tables now occupy the full width of the container row.  Some of
them are otherwise squished.  Also make sure the new fixed container
layout has not reduced the originally intended width of a table.
2016-09-11 13:15:00 -04:00
Sunil Mohan Adapa
2c204429c6
Remove width management for forms
Now all forms will uniformly occupy the full width of the available
row.  Bootstrap originally designed forms this way.  However, we were
setting restricted widths on forms as they were too wide.  With the new
fixed container layout this is no longer necessary.
2016-09-11 13:14:57 -04:00
Sunil Mohan Adapa
57bc8f1db6
letsencrypt: Depend on the new certbot package
Instead of the transitional package 'letsencrypt'.

I believe, there is no need to rename the entire module to certbo since
letsencrypt is stil a more apt name for the module.  Let's Encrypt is a
strong brand that people know.  The service is still called Let's
Encrypt.  Only the automation tool has been renamed to certbot to avoid
confusion of the service name.
2016-09-04 15:47:46 -04:00
Sunil Mohan Adapa
72c6aad514
minetest: Fix showing status block and diagnostics 2016-09-03 15:15:59 -04:00
Sunil Mohan Adapa
3454abdc43
monkeysphere: Allow non-root cancel of publishing
Implement killing the publish process from within the action.  Don't let
the killing be too generic to avoid potential security issues.  Kill
process only if it appears as expected.
2016-09-02 12:00:08 -04:00