mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
privoxy: Remove get-enabled from actions
This commit is contained in:
1 parent
cedec9b624
commit
4906384b39
3 files changed
+14
-18
No files matched your search
@@ -37,8 +37,6 @@ def parse_arguments():
|
||||
|
||||
subparsers.add_parser('setup',
|
||||
help='Perform Privoxy configuration setup')
|
||||
subparsers.add_parser('get-enabled',
|
||||
help='Get whether Privoxy service is enabled')
|
||||
subparsers.add_parser('enable', help='Enable Privoxy service')
|
||||
subparsers.add_parser('disable', help='Disable Privoxy service')
|
||||
|
||||
@@ -65,12 +63,6 @@ def subcommand_setup(_):
|
||||
action_utils.service_restart('privoxy')
|
||||
|
||||
|
||||
def subcommand_get_enabled(_):
|
||||
"""Get whether service is enabled."""
|
||||
is_enabled = action_utils.service_is_enabled('privoxy')
|
||||
print('yes' if is_enabled else 'no')
|
||||
|
||||
|
||||
def subcommand_enable(_):
|
||||
"""Start service."""
|
||||
action_utils.service_enable('privoxy')
|
||||
|
||||
Reference in new issue
Block a user