Sunil Mohan Adapa
3c7bc4a192
*: pylint: Explicitly specify encoding when open a file
...
This is recommended by PEP-0597: https://peps.python.org/pep-0597/
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-07-04 19:45:57 -04:00
Veiko Aasa
e2e3768fe1
ikiwiki: Validate a path when deleting wiki or blog
...
I tested that ikiwiki functional tests pass and running the command
`sudo ./actions/ikiwiki delete --name '../'`
returns an error and does not delete any directory.
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-07-25 14:03:25 -07:00
Sunil Mohan Adapa
eada506b23
actions/*: Use SPDX license identifier
...
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:39:36 +02:00
Veiko Aasa
6cd6742d8f
ikiwiki: Allow full Unicode text in wiki/blog title names
...
Closes : #1523
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Fix issue with enabling shortcuts on daemon start]
[sunil@medhas.org Run isort and yapf]
[sunil@medhas.org Prevent change in i18n string]
[sunil@medhas.org Fix flake8 warning about uniform return values]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-08 14:33:36 -07:00
Sunil Mohan Adapa
e4351b6b97
Introduce daemon component to handle systemd units
...
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-06-13 20:18:02 -04:00
Sunil Mohan Adapa
4100d36381
Introduce webserver component for managing Apache configuration
...
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-06-13 20:17:49 -04:00
Sunil Mohan Adapa
33f54089b8
ikiwiki: Pre-enable necessary apache modules
...
To avoid restart during installation.
Closes : #1482 .
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-28 20:13:40 -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
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
48da6862b9
ikiwiki: Remove get-enabled from actions
2015-07-19 19:56:05 -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
James Valleroy
70e0c4f61a
ikiwiki: Enable HTTP auth using LDAP.
2015-07-13 19:50:58 +05:30
Sunil Mohan Adapa
2f56a516de
ikiwiki: Minor styling and fix
...
- Minor styling update in service description.
- Fix a minor issue that a2query outputs on STDERR when the
configuration is disabled.
2015-06-28 11:15:52 +05:30
James Valleroy
9d6ceaa0ff
ikiwiki: Use a2query to check if enabled.
2015-06-26 17:34:37 +05:30
James Valleroy
be14b49c83
ikiwiki: Install conf files during Plinth install.
2015-06-26 17:34:37 +05:30
James Valleroy
045dae59f7
ikiwiki: Enable during setup.
2015-06-26 17:34:37 +05:30
Sunil Mohan Adapa
4e42486822
ikiwiki: Data in /var/lib & setup after install
...
- It is conventional to store application data in /var/lib/APPDIR
instead of /var/APPDIR. Change ikiwiki data folder to
/var/lib/ikiwiki.
- After installing and before enabling and setting up basic
configuration, performing any operation such as 'create' wiki/blog
lead to silent errors. Do avoid this situation, perform a separate
setup() operation soon after the package is installed.
2015-04-18 21:09:44 +05:30
Sunil Mohan Adapa
cc97304925
ikiwiki: Don't error out when listing before setup
...
- After a ikiwiki module is installed but not yet enabled, visting the
'manage' page throws an error. Fix this.
2015-04-18 21:07:08 +05:30
James Valleroy
35dcde00de
ikiwiki: Create admin account for new wiki/blog.
2015-04-13 20:43:07 +05:30
James Valleroy
18234850ff
ikiwiki: Add delete command for wikis and blogs.
2015-04-13 20:43:07 +05:30
James Valleroy
1464ff3184
ikiwiki: Create and manage wikis/blogs.
2015-04-13 20:43:07 +05:30
James Valleroy
fbce204180
Add ikiwiki module with initial setup and option to enable site.
2015-04-13 20:43:07 +05:30