mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Moved pagekit url creation to pagekite module
plus some minor cleanup
This commit is contained in:
1 parent
8955e41f15
commit
c04897be8b
6 files changed
+70
-44
No files matched your search
+2
-2
@@ -223,10 +223,10 @@ def subcommand_add_service(arguments):
|
||||
|
||||
root = get_new_service_path(params['protocol'])
|
||||
# TODO: after adding a service, augeas fails writing the config;
|
||||
# so do it manually here
|
||||
# so add the service_on entry manually instead
|
||||
path = convert_augeas_path_to_filepath(root)
|
||||
with open(path, 'a') as servicefile:
|
||||
line = "service_on = %s" % deconstruct_params(params)
|
||||
line = "\nservice_on = %s\n" % deconstruct_params(params)
|
||||
servicefile.write(line)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user