Sunil Mohan Adapa
8f4811b350
Rename Plinth to FreedomBox in more module doc strings
...
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:31 -05:00
Sunil Mohan Adapa
dea4af17fb
Rename Plinth to FreedomBox in license headers
...
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:09 -05:00
Johannes Keyser
634afef1c9
actions: Make subparsers mandatory, fixes calls without arguments
...
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-10 11:54:23 +05:30
Sunil Mohan Adapa
5ccbd6f35c
pagekite: Make Augeas loading narrower and faster
2015-10-12 22:26:14 +05:30
Sunil Mohan Adapa
670be77b9a
pagekite: Fix issue with setting port
...
- When the current configuration does not contain a port and we try to
set the port for the frontend server, it fails. This patch fixes
that.
- Minor styling and spelling fixes.
- Make sure that if port is not set for frontend, it will be set on
saving the form.
2015-10-11 17:54:26 +05:30
fonfon
aad69deb6e
Display correctly if service is PageKite is enabled
2015-10-11 17:19:35 +05:30
fonfon
96a272b3b0
Added explicit port setting to pagekite configuration
2015-10-11 17:19:35 +05:30
Sunil Mohan Adapa
0b1e97d99c
Treat entire input as password
...
Instead of just the first line.
PEP8 fixes.
2015-08-23 16:24:29 +05:30
Sean Alexandre
21b9a5b02a
Passwords now sent over stdin instead of command line.
...
Fixes Issue #166 :
Don't pass passwords on command line
https://github.com/freedombox/Plinth/issues/166
This issue was for 4 modules: Transmission, Pagekite, DynamicDNS, and Ikiwiki.
2015-08-23 15:20:08 +05:30
Sunil Mohan Adapa
36adc84b5d
pagekite: Remove unused import
2015-07-28 16:38:13 +05:30
Sunil Mohan Adapa
07e2c0ce14
Don't use actions to check if service is running
...
- To check whether a service is running does not require root
privileges. This can directly be done from a module without any
action.
- Since actions are allowed to be run using sudo, introducing
unnecessary sub-commands increases attack surface.
- Simple functions calls are unnecessarily being converted to command
line invocations and involve parsing response.
- There is a lot of repeated code because of this that can be
eliminated.
- To generalize this, we need to make all non-root system operations
directly from module instead of delegating to action commands.
2015-07-19 19:54:13 -04:00
Sunil Mohan Adapa
3b6af2f29c
Use only action utilities for service management
...
- When disabling a service, ignore if unable to stop the service.
2015-07-19 19:54:13 -04:00
Sunil Mohan Adapa
517c364559
pagekite: Move to using python3-augeas
...
- Merge actions/pagekite_util.py into plinth/modules/pagekite/util.py.
- Rename plinth/modules/pagekite/util.py to utils.py.
- Add python-augeus as dependency.
- Move actions/util.py to plinth/action_utils.py and update services
that use it.
- Rename _run() method to run() as it is being used publicly.
- Import the utils in a more conventional manner.
- Move all python2 bits to python3.
2015-07-19 15:37:43 -04:00
fonfon
0ffaaa3da7
Use JSON as pagekite action-script arguments
...
This allows to safe some conversions
2015-05-04 10:20:37 +02:00
fonfon
7a4486fadf
pagekite: restart service when config is changed
...
so the changed config gets applied immediately, and
not only after enabling/disabling the service manually.
2015-05-03 16:53:47 +02:00
fonfon
ef08f40447
minor layout cleanup
2015-05-03 15:28:45 +02:00
fonfon
3cc0cb74a6
Prevent adding existing or predefined services
...
and improved form error handling
2015-05-03 09:44:46 +02:00
fonfon
b3da314560
use util.service_is_running for tor also
2015-05-03 09:44:46 +02:00
fonfon
3f2c9ff2c8
cleaned up actions and configuration form
2015-05-03 09:44:46 +02:00
fonfon
99bfda3b69
removed default frontend stuff from actions
...
it's all handled via get-frontend and set-frontend now.
and there are now some doctests in actions/pagekite_util.py
2015-05-03 09:44:46 +02:00
fonfon
b96c89b0ab
make pagekite login-required;
...
restart pagekite after adding/deleting a service so the changes take
effect;
improved warnings in the UI
2015-05-03 09:44:46 +02:00
fonfon
0b2b8ba51a
Removing a service limited to removing 1 service
...
before it could happen that more services were removed
2015-05-03 09:44:46 +02:00
fonfon
d5d9e2df2e
renamed variables for consistency
...
there are only 'service' and 'service_string' now, no more 'params'
2015-05-03 09:44:46 +02:00
fonfon
c04897be8b
Moved pagekit url creation to pagekite module
...
plus some minor cleanup
2015-05-03 09:44:46 +02:00
fonfon
1fc0064fd0
refactoring pagekite: configuration form works
...
splitting the services to a separate page is not yet finished
2015-05-03 09:44:46 +02:00
fonfon
cf96797040
pagekite action: Use augeas pagekite lens
...
And allow setting any server as pagekite frontend.
2015-05-03 09:44:45 +02:00