5884 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
4986d26b5d
middleware: Add tests for setup middleware 2016-06-02 20:13:44 -04:00
Sunil Mohan Adapa
cde615aee6
middleware: Don't interfere in 404 URLs in setup
Don't raise a 404 exception when a page is not found.  Instead, simply
bypass the setup middleware so that other middleware have a chance to
process further.

Slight modification so that resolve method can be mocked during
unittests.
2016-06-02 20:13:40 -04:00
Sunil Mohan Adapa
f34cb78867
middleware: Fix anonymous access to setup view
Django runs process_request() on all the middleware classes in order.
Then it runs process_view() on all of them again.  During the runs, if
any of the views return a HttpResponse.  Further processing is ignored.

Setup middleware was handling process_request() and returning
HttpResponse if the application as not setup.  However, stronghold
middleware handles process_view().  Since process_request happens first
and response is being returned there, stronghold middleware is never
called.

Make setup middleware use process_view() instead.
2016-06-02 20:13:35 -04:00
Sunil Mohan Adapa
9078ec5a2b
Don't write to PID file
When running under systemd, PID is known and maintained by systemd.
Process don't have write PIDs to a PID file.
2016-05-29 21:07:07 +05:30
Sunil Mohan Adapa
1f53321b51
Don't use init.d file, don't daemonize
We pretty much only run in systemd environment and I don't see that
changing any time soon.  By relying on it, we can reduce some burden.
Remove init script.

Daemonizing is not needed for systemd.  Remove code related
daemonization.
2016-05-29 20:32:12 +05:30
James Valleroy
f6884a18fa
Set privoxy listen-address by debconf preseed before install. 2016-05-25 19:23:54 -04:00
Sunil Mohan Adapa
8d9480901b
action_utils: Limited fallback to sysvinit
In case of start/stop/restart/reload and to check whether service is
running, fallback to sysvinit scripts when systemd is not running.  This
happens inside a chroot environment when setup of essential components
is happening.
2016-05-21 16:06:29 -04:00
James Valleroy
f01575e2ea
Move ldap setup from freedombox-setup to plinth. 2016-05-21 16:06:18 -04:00
Sunil Mohan Adapa
60e52d2729
Deal with ownCloud removal from Debian
It has been decided that FreedomBox will no longer support ownCloud due
it's removal from Debian.  To deal with this:

- Don't show ownCloud in Plinth any more for new users.

- For users who have already installed ownCloud, show a warning message
  that they need to migrate away from ownCloud or need to manage it
  manually.
2016-05-17 18:48:08 -04:00
James Valleroy
4e531d8686
Release 0.9.2 2016-05-14 11:43:06 -04:00
Алексей Докучаев
d2bb575842 Translated using Weblate (Russian)
Currently translated at 99.8% (585 of 586 strings)
2016-05-14 15:49:12 +02:00
fonfon
bc2cba0cbf
tor: remove circular import 2016-05-11 18:19:49 -04:00
fonfon
f867ecfb16
Removed (accidentially) duplicate dyndns description 2016-05-11 18:19:46 -04:00
fonfon
895f329654
Services: minor cleanup
- remove Service.description (not used anymore)
- remove datetime template (use default service.html instead)
2016-05-11 18:19:42 -04:00
fonfon
398e6d7b14
Services: fix unittests 2016-05-11 18:19:39 -04:00
fonfon
b54846b0ce
Services: Template restructuring
- renamed app.html to simple_service.html
- allow hiding the 'status' block instead of using separate
  apache_service.html template
2016-05-11 18:19:35 -04:00
fonfon
f419c28596
Services: Explicitly use ServiceForm and ServiceView
- adapted all modules to not use views.ConfigurationView anymore
- removed templates that are not needed anymore
- no more implicit 'enabled' and 'get_status' functions in __init__.py files
- (more coherent/explicit use of Django functionality)
2016-05-11 18:19:31 -04:00
fonfon
a9528c56d9
Service object to handle services on a system-level
The Service object now offers handling services on a system level,
and gathering information whether it's enabled or running.
New methods: enable, disable, is_enabled, is_running;

For this it needs the correct (system-level) service name.
All of the methods can be overridden/customized.

This changes all modules to the new Service object and deletes
action scripts that are not required anymore.
2016-05-11 18:19:27 -04:00
fonfon
9fe49f881f
Services-Action to handle and list services managed by plinth
- API: start, stop, enable, disable, reload, is-running, is-enabled, list
- only allows access to a service if the service name is listed in a
  'managed_services' variable of any plinth module.
2016-05-11 18:19:14 -04:00
Sunil Mohan Adapa
16d6ff3941
roundcube: Minor fix in setup process notification 2016-05-08 10:47:08 +05:30
Sunil Mohan Adapa
567fd590ab
setup: Run first time setup with apt
Due to problems with running PackageKit inside foriegn binary Qemu, this
is a fallback solution to use apt-get directly instead.
2016-05-08 10:46:57 +05:30
Mikkel Kirkgaard Nielsen
8340a813e5 Translated using Weblate (Danish)
Currently translated at 99.6% (584 of 586 strings)
2016-05-07 17:49:23 +02:00
Sunil Mohan Adapa
1489b81fee
diagnostics: Fix a warning about a global use 2016-05-07 11:48:18 -04:00
Sunil Mohan Adapa
2f3eba4e10 Translated using Weblate (Polish)
Currently translated at 23.3% (137 of 586 strings)
2016-05-07 16:01:06 +02:00
the29a
f42b455279 Translated using Weblate (Russian)
Currently translated at 100.0% (586 of 586 strings)
2016-05-06 12:45:20 +02:00
the29a
d3a7761a70 Translated using Weblate (Russian)
Currently translated at 100.0% (586 of 586 strings)
2016-05-01 12:45:37 +02:00
the29a
88e35bf476 Translated using Weblate (Russian)
Currently translated at 100.0% (586 of 586 strings)
2016-04-29 11:13:21 +02:00
Daniel Kukula
a007a159a9 Translated using Weblate (Polish)
Currently translated at 23.3% (137 of 586 strings)
2016-04-27 06:44:59 +02:00
Sunil Mohan Adapa
1cdb3e5be1
New locale for Polish (pl) 2016-04-22 06:00:10 +05:30
Ingrid Yrvin
6965b14c4c Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.6% (578 of 586 strings)
2016-04-12 15:44:53 +02:00
Ole-Erik
bf42949dbc Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.4% (577 of 586 strings)
2016-04-09 16:22:32 +02:00
Ingrid Yrvin
81b1caebba Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.8% (585 of 586 strings)
2016-04-09 15:51:45 +02:00
Praveen Illa
14f1b7a1ae Translated using Weblate (Telugu)
Currently translated at 45.2% (265 of 586 strings)
2016-03-28 09:45:17 +02:00
YFdyh000
6ab8439edb Translated using Weblate (Simplified Chinese)
Currently translated at 91.2% (535 of 586 strings)
2016-03-26 12:45:14 +01:00
Mikkel Kirkgaard Nielsen
0c27c347b2 Translated using Weblate (Danish)
Currently translated at 99.4% (583 of 586 strings)
2016-03-26 00:44:20 +01:00
James Valleroy
e88b2af4f6
Release 0.9.1 2016-03-23 17:27:15 -04:00
Philippe Baret
24c3763443 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (586 of 586 strings)
2016-03-23 17:56:24 +01:00
Philippe Baret
1a40ec4f7f Translated using Weblate (French)
Currently translated at 100.0% (586 of 586 strings)
2016-03-23 17:56:24 +01:00
James Valleroy
30bffc35d3
Release 0.9 2016-03-23 06:17:09 -04:00
Dietmar
2e4ef6be86 Translated using Weblate (German)
Currently translated at 100.0% (586 of 586 strings)
2016-03-23 10:23:20 +01:00
Mikkel Kirkgaard Nielsen
f90809fed9 Translated using Weblate (Danish)
Currently translated at 99.1% (581 of 586 strings)
2016-03-23 10:23:19 +01:00
Luis A. Arizmendi
739bb39c60 Translated using Weblate (Spanish)
Currently translated at 100.0% (586 of 586 strings)
2016-03-21 00:45:14 +01:00
Robert Martinez
c685b444d8 Translated using Weblate (German)
Currently translated at 100.0% (586 of 586 strings)
2016-03-20 12:54:02 +01:00
Luis A. Arizmendi
76a78676a8 Translated using Weblate (Spanish)
Currently translated at 100.0% (586 of 586 strings)
2016-03-18 21:47:53 +01:00
Dietmar
ccd794bc4b Translated using Weblate (German)
Currently translated at 99.6% (584 of 586 strings)
2016-03-18 21:47:53 +01:00
Mikkel Kirkgaard Nielsen
242faf42b0 Translated using Weblate (Danish)
Currently translated at 75.5% (443 of 586 strings)
2016-03-18 21:47:53 +01:00
James Valleroy
d22b0dd19b
Translated using Transifex (Norwegian Bokmål) 2016-03-18 16:46:32 -04:00
Philippe Baret
b1ced30953 Translated using Weblate (French)
Currently translated at 100.0% (586 of 586 strings)
2016-03-18 09:44:28 +01:00
Diederik de Haas
4382fbd104 Translated using Weblate (Dutch)
Currently translated at 100.0% (586 of 586 strings)

Translated purpose of use.
2016-03-18 03:22:45 +01:00
Robert Martinez
f996d09291 Translated using Weblate (German)
Currently translated at 88.7% (520 of 586 strings)
2016-03-17 20:33:59 +01:00