1744 Commits

Author SHA1 Message Date
James Valleroy
ddd1abdb8a
upgrades: Add systemd sandboxing features to repository setup service
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 17:49:13 -08:00
James Valleroy
c91939710b
storage: Add systemd sandboxing features to udiskie service
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 17:49:10 -08:00
James Valleroy
1498a9ae83
infinoted: Use systemd sandboxing features
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 17:49:07 -08:00
James Valleroy
b4e00d2574
deluge: Use systemd sandboxing features
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Remove directive for unused logs directory]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 17:48:31 -08:00
James Valleroy
bc748ed5bb
mldonkey: Add ProtectKernelLogs
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 17:47:49 -08:00
James Valleroy
c9d9d4736b
firewall: Support upgrading firewalld to 0.8
Closes #1737.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-12-29 14:46:36 -08:00
Veiko Aasa
aa2aa56c46
users: Add tests for the Samba user database
Fix: after renaming a user delete old username from the Samba password database

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-29 16:59:04 -05:00
Veiko Aasa
962e5b488f
storage: Tests for the directory validation action
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-26 16:37:01 -05:00
James Valleroy
2351744024
samba: Fix spelling in description
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-20 21:29:12 -05:00
Veiko Aasa
83cb305026
samba: private shares
- new share types - group and home shares
- users: when creating, deleting or changing user password, update also Samba
  tdbsam backend database
- users: new managed packages - samba-common-bin, tdb-tools
- module page: show current samba users who are in freedombox-share group
- module page: show users who should re-enter their password in the password change page
- fix: use os.path.ismount() from Python standard library to validate a mount point
- fix: samba share permissions, fixes #1729
- fix: delete a share - do not raise an exception if the share doesn't exist
- storage: show samba share type in the directory selection form

Closes #1727

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-20 21:01:12 -05:00
James Valleroy
83ca977dd4
users: Use service action to restart share group service
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 19:08:18 -05:00
Veiko Aasa
6bf6740b23
transmission: New directory selection form
- use new directory selection form (#1703)
- add transmission-daemon to the freedombox-share group
- pass only needed data to the template
- do not change or validate download directory if transmission
  module is going to be disabled
- yapf3 validation changes

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 19:08:14 -05:00
Veiko Aasa
ea48f9a74b
storage: Directory selection form and validator
Directory selection allows to:
- select from default directory
- select from available Samba shares
- specify subdirectory
- insert custom directory

- directory validator checks: path exists, is directory, is readable, is writable
- samba: action script: include share path in share list
- create freedombox-share group inside users module  instead of samba module

Closes #1703

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 19:08:10 -05:00
James Valleroy
8d51adcc05
cockpit: Filter out localhost URLs from displayed access list
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 08:17:46 -05:00
Nektarios Katakis
4805e01929
cockpit: add list of valid urls to access the app.
Closes #1649

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 08:09:49 -05:00
Nektarios Katakis
656988cc54
cockpit: extend apps description with access info
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-15 08:09:45 -05:00
James Valleroy
1650555184
mumble: Keep icon_filename in moved view
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-10 21:14:02 -05:00
Nektarios Katakis
4ff037a6cc
mumble: Add option to set SuperUser password
Closes: #1680

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-10 21:13:53 -05:00
James Valleroy
11447c5788
minidlna: Only show shortcut to users in group
Add docstring.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:50:28 -05:00
James Valleroy
ec7a74bf20
minidlna: Fix webserver config name
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:50:26 -05:00
James Valleroy
4909e776ba
minidlna: Show icon on app page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:50:24 -05:00
James Valleroy
f19a5b746f
minidlna: Use single action to set media dir and restart
Style config path as constant.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:50:22 -05:00
James Valleroy
3bad37a749
minidlna: Add managed service and Daemon component
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:50:19 -05:00
Nektarios Katakis
ef5f5a21de
feature: minidlna app
Closes #1679

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-08 14:49:21 -05:00
James Valleroy
1df21bc090
samba: Add icon to app page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:51:03 -05:00
Alice Kile
52a9673f69
fix: implement requested changes
- pass short_description to header.html include statement in templates/setup.html
- pass description to header.html include statement in
  modules/sharing/templates/sharing.html
- use `[]` instead of `None` for the initial value of description
  property in SetupView (plinth/views.py)
- add license info to header.html

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:53 -05:00
Alice Kile
a9979db56f
config: fix minor syntax error
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:49 -05:00
Alice Kile
0dd4d1acf2
implement responsive layout for app page
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:44 -05:00
Alice Kile
ec6013b5bb
properly implement header in app and setup pages
- move header section to it's own file so that it can be imported across
  the app (app.html, simple_app.html, setup.html)

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:41 -05:00
Alice Kile
45b6aa6a1c
fix formatting and template-related issues
- remove unwanted spaces and line breaks
- use just an image instead of using figure and figure caption to
  display the icon in installation page
- eliminate unnecessary code duplication due to if condition

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:39 -05:00
Alice Kile
eb83e00011
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:35 -05:00
Alice Kile
fa74a26042
use single variable for referencing icon filename
- add and use "icon_filename" property to almost all of the modules
  being displayed in the apps page
- sharing and tor modules do not seem to be using setup.html template
  file and so the variable is not added to their __init__.py files,
  therefore the icon will not be displayed on these app pages.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:33 -05:00
Veiko Aasa
9d20875b03
samba: Fix javascript constant redeclaration error
Related to #1715

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-12-03 00:18:44 +05:30
James Valleroy
a6091a1edb
diagnostics: Use a distinct class for Run Diagnostics button on this page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:42 -05:00
Sunil Mohan Adapa
0702b8dce9
minetest: Minor cosmetic fix
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:31 -05:00
Sunil Mohan Adapa
7cfb4cc683
users: Move create button into users section
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:29 -05:00
Sunil Mohan Adapa
0748d951b3
networks: Move actions button into connection section
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:25 -05:00
Sunil Mohan Adapa
cc1aef969c
gitweb: Move create button into manage section
- Also make it the default button rather than primary button to avoid multiple
  primary buttons in the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:22 -05:00
Sunil Mohan Adapa
eff9f619c7
ikiwiki: Move the create button to manage section
- Also make it the default button rather than primary button to avoid multiple
  primary buttons in the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:20 -05:00
Sunil Mohan Adapa
05daf33ff8
tor: Use app.html instead of simple_app.html
- Reuse status section.

- Reuse configuration form.

- Reuse internal zone section.

- Cleanly split the page into status, internal zone and configuration blocks.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:16 -05:00
Sunil Mohan Adapa
167a4f5f8a
openvpn: Use app.html instead of simple_app.html
- Place status section above download profile section for coding convenience.

- Reuse diagnostics button and port forwarding information from app.html

- Reuse status section instead of custom one.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:09 -05:00
Sunil Mohan Adapa
ece2dd5e57
power: Use app.html instead of simple_app.html
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:53 -05:00
Sunil Mohan Adapa
2a12e170ee
names: Use app.html instead of simple_app.html
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:50 -05:00
Sunil Mohan Adapa
1db28dba0e
monkeysphere: Use app.html instead of simple_app.html
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:47 -05:00
Sunil Mohan Adapa
69663df5c6
letsencrypt: Use app.html instead of simple_app.html
- Produce a diagnostics button using app.html code instead of a custom button.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:44 -05:00
Sunil Mohan Adapa
a4fc1181b5
firewall: Use app.html instead of simple_app.html
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:41 -05:00
Sunil Mohan Adapa
c2f372e94e
diagnostics: Use app.html instead of simple_app.html
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:40:37 -05:00
James Valleroy
b5cb35fb91
samba: Keep create_group in setup
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 14:03:58 -05:00
James Valleroy
da39f593f1
samba: Only show shortcut to users in freedombox-share group
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 11:30:59 -05:00
James Valleroy
1a76e7bef0
samba: Use register_group instead of create_group
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 11:30:57 -05:00