guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/05: services: tor: Mark end of auto-generated configuration block.


From: Tobias Geerinckx-Rice
Subject: 05/05: services: tor: Mark end of auto-generated configuration block.
Date: Wed, 13 Jun 2018 23:23:25 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 0975ca3fd4c65bfdd08fe887812ed6b5df9c5567
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Thu Jun 14 04:41:18 2018 +0200

    services: tor: Mark end of auto-generated configuration block.
    
    * gnu/services/networking.scm (tor-configuration->torrc): Clearly
    demarcate auto-generated lines.
---
 gnu/services/networking.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index e4441f6..d5d0cf9 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2017 Clément Lassieur <address@hidden>
 ;;; Copyright © 2017 Thomas Danckaert <address@hidden>
 ;;; Copyright © 2017 Marius Bakke <address@hidden>
+;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -608,7 +609,7 @@ demand.")))
             (call-with-output-file #$output
               (lambda (port)
                 (display "\
-# The beginning was automatically added.
+### These lines were generated from your system configuration:
 User tor
 DataDirectory /var/lib/tor
 Log notice syslog\n" port)
@@ -628,6 +629,9 @@ HiddenServicePort ~a ~a~%"
                                      (cons name mapping)))
                                   services))
 
+                (display "\
+### End of automatically generated lines.\n\n" port)
+
                 ;; Append the user's config file.
                 (call-with-input-file #$config-file
                   (lambda (input)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]